Filippo, it's working for me, are you sending a header with Content-Type: application/json? *This is what I sent:* POST /v2/applications/ HTTP/1.1 Host: api.fundingbox.com Authorization: 597acdc9458bb4f3a64d092d Content-Type: application/json Cache-Control: no-cache { "data": { "project": { "title": "Idea 0609-5", "technical_feasibility_analysis": "output feasibility analisi", "setup_and_configuration": "wdwdwd", "description": "wewfwfwf wfw", "challenges_and_solutions": [{ "challenge": "Challenge1", "solution": "Solution1" }, { "challenge": "Challenge2", "solution": "Solution2" }], "hardware_and_network_diagrams": [{ "filename": "File_numero1.pdf", "src": " http://localhost:3000/documents/20194/ba7aa257-a972-4960-bdd6-d5a6611a5c32", "type": "application/pdf", "size": 275663 }, { "filename": "File_numero2.txt", "src": " http://localhost:3000/documents/20194/4dd6b0e3-67ee-464c-acfc-a93cbd15ff41", "type": "text/plain", "size": 1204 }] }, "approach": { "replicability_scalability_and_sustainability": "out Replicability scalability and sustainability", "demostration_deployment_phases": "outputt Demostration deployment", "standars_interoperability": "Standars interoperability", "test_plan_and_results": "output test result", "major_requeriments": "output Major requirements" }, "team": { "partners": ["partner1", "partner2", "partner3"], "cities_and_members": [{ "city_name": "sss", "member_email": "momentis at outlook.it", "member_name": "Fil Momenti" }], "name_team_lead": "Filippo Giu", "email_team_lead": "filippo.giuffrida at eng.it" }, "impact": { "others": "output others", "socio_economic_and_societal_impact": "description output Socio economic and societal impact", "differentation": "output differentation", "benefits": "description output Benefits" } }, "opencall": "fiware-gctc" } *And this is the response:* { "status": "ok", "application": { "__v": 0, "project": { "title": "Idea 0609-5", "technical_feasibility_analysis": "output feasibility analisi", "setup_and_configuration": "wdwdwd", "description": "wewfwfwf wfw", "challenges_and_solutions": [ { "solution": "Solution1", "challenge": "Challenge1" }, { "solution": "Solution2", "challenge": "Challenge2" } ], "hardware_and_network_diagrams": [ { "size": 275663, "type": "application/pdf", "src": " http://localhost:3000/documents/20194/ba7aa257-a972-4960-bdd6-d5a6611a5c32", "filename": "File_numero1.pdf" }, { "size": 1204, "type": "text/plain", "src": " http://localhost:3000/documents/20194/4dd6b0e3-67ee-464c-acfc-a93cbd15ff41", "filename": "File_numero2.txt" } ] }, "approach": { "replicability_scalability_and_sustainability": "out Replicability scalability and sustainability", "demostration_deployment_phases": "outputt Demostration deployment", "standars_interoperability": "Standars interoperability", "test_plan_and_results": "output test result", "major_requeriments": "output Major requirements" }, "team": { "partners": [ "partner1", "partner2", "partner3" ], "cities_and_members": [ { "member_name": "Fil Momenti", "member_email": "momentis at outlook.it", "city_name": "sss" } ], "name_team_lead": "Filippo Giu", "email_team_lead": "filippo.giuffrida at eng.it" }, "impact": { "others": "output others", "socio_economic_and_societal_impact": "description output Socio economic and societal impact", "differentation": "output differentation", "benefits": "description output Benefits" }, "createdAt": "2017-09-11T10:57:14.059Z", "updatedAt": "2017-09-11T10:57:14.059Z", "status": "Draft", "_id": "59b66c0aa969c72a5d1af8d1", "opencall": { "slug": "fiware-gctc" }, "owner": { "uid": "55a17b73af59fc5e0c8b4567", "uname": "xurxo", "uavatar": " https://www.gravatar.com/avatar/9dd044458974fe8770e3bab2805fca7a?d=identicon " } } } On Mon, Sep 11, 2017 at 12:56 PM, Jorge Fernandez <jorge at fundingbox.com> wrote: > I'll check it > > Thanks, > Jorge > > On Mon, Sep 11, 2017 at 12:52 PM, Filippo Giuffrida < > filippo.giuffrida at eng.it> wrote: > >> Hi Jorge, >> >> I've tried the same JSON on http://api.fundingbox.com/v2/applications , >> now the system responds >> >> { >> "status": "ko", >> "error": "Field opencall is required." >> } >> >> >> But as you can see in the JSON the field opencall is present and >> valorized "opencall":"fiware-gctc" >> >> Please, where is the mistake ? >> >> Regards >> *Filippo* >> >> >> >> Il 11/09/2017 12:40, Jorge Fernandez ha scritto: >> >> Thanks Filippo, >> >> It seems you logged in using http://accounts.fundingbox.com (which is >> the production server) and trying to send the request to >> http://api-fundingbox-dev.westeurope.cloudapp.azure.com/v2/applications (which >> is a sandbox for development) >> >> These 2 services are using different database servers, so the API can't >> find your auth token. >> As we don't have right now a sandbox version of the accounts service, try >> calling the API already in production: http://api.fundingbox.com >> >> Let me know if there is any problem. >> >> Regards, >> Jorge >> >> On Mon, Sep 11, 2017 at 12:18 PM, Filippo Giuffrida < >> filippo.giuffrida at eng.it> wrote: >> >>> Hi Jorge, >>> >>> yes, it is a POST request as I wrote "*I've used this JSON in post body* >>> " >>> Thank you >>> >>> Best Regards >>> >>> *Filippo* >>> >>> >>> Il 11/09/2017 12:15, Jorge Fernandez ha scritto: >>> >>> Hi Filippo, thanks, I assume it is a POST request, right? >>> I'll check it and I'll tell you. >>> >>> Thanks, >>> Jorge >>> >>> On Mon, Sep 11, 2017 at 12:08 PM, Filippo Giuffrida < >>> filippo.giuffrida at eng.it> wrote: >>> >>>> Hi fundingbox team, >>>> >>>> I'm trying to use the WS of idea submission >>>> >>>> I've used this JSON in post body >>>> >>>> {"data":{"project":{"title":"Idea 0609-5","technical_feasibility_analysis":"output >>>> feasibility analisi","setup_and_configurat >>>> ion":"wdwdwd","description":"wewfwfwf wfw","challenges_and_solutions >>>> ":[{"challenge":"Challenge1","solution":"Solution1"},{"chall >>>> enge":"Challenge2","solution":"Solution2"}],"hardware_and_ne >>>> twork_diagrams":[{"filename":"File_numero1.pdf","src":"http: >>>> //localhost:3000/documents/20194/ba7aa257-a972-4960-bdd6-d5a6611a5c32" >>>> <http://localhost:3000/documents/20194/ba7aa257-a972-4960-bdd6-d5a6611a5c32> >>>> ,"type":"application/pdf","size":275663},{"filename":"File_numero2. >>>> txt","src":"http://localhost:3000/documents/20194/4dd6b0e3- >>>> 67ee-464c-acfc-a93cbd15ff41" >>>> <http://localhost:3000/documents/20194/4dd6b0e3-67ee-464c-acfc-a93cbd15ff41> >>>> ,"type":"text/plain","size":1204}]},"approach":{"replicability >>>> _scalability_and_sustainability":"out Replicability scalability and >>>> sustainability","demostration_deployment_phases":"outputt Demostration >>>> deployment","standars_interoperability":"Standars >>>> interoperability","test_plan_and_results":"output test >>>> result","major_requeriments":"output Major >>>> requirements"},"team":{"partners":["partner1","partner2","pa >>>> rtner3"],"cities_and_members":[{"city_name":"sss","member_email": >>>> "momentis at outlook.it" <momentis at outlook.it>,"member_name":"Fil >>>> Momenti"}],"name_team_lead":"Filippo Giu","email_team_lead":"filipp >>>> o.giuffrida at eng.it" <filippo.giuffrida at eng.it>},"impact":{"others":"output >>>> others","socio_economic_and_societal_impact":"description output Socio >>>> economic and societal impact","differentation":"output >>>> differentation","benefits":"description output >>>> Benefits"}},"opencall":"fiware-gctc"} >>>> >>>> and I've added in the Header the Authorization >>>> 59b65a26af59fccf348b4567 (generated by the SSO OAuth API for the user >>>> momentis at outlook.it) >>>> >>>> the endpoint is http://api-fundingbox-dev.west >>>> europe.cloudapp.azure.com/v2/applications >>>> >>>> But the API responded with status 401 and message: >>>> >>>> { >>>> "status": "ko", >>>> "error": "Unauthorized" >>>> } >>>> I think I've followed your guidelines, I've tryed both via code and >>>> via RESTclient. >>>> Please could you take a look and say me if I made any mistake ? >>>> >>>> Thank you in advance >>>> >>>> Best Regards >>>> >>>> *Filippo* >>>> >>>> Il 28/07/2017 08:37, Jorge Fernandez ha scritto: >>>> >>>> Hi Filippo, >>>> >>>> Attached you'll find the documentation you'll need to interact with the >>>> API to insert new applications or get the existing ones. >>>> There is also a document with the applications data model (in JSON) >>>> >>>> Please, take in consideration all API requests should include and >>>> "Authorization" header with a valid user access token. >>>> The API doesn't allow unauthorized requests, so before make an API call >>>> you'll have to get the user access token via the OAuth service. >>>> >>>> When inserting a new application, don't forget to include the parameter >>>> "opencall". This allow us to identify what kind of application is. >>>> For this opencall the parameter value is always "fiware-gctc" >>>> >>>> >>>> https://docs.google.com/document/d/1C287Tb-PIHwuklIIGk_lPZLm >>>> H9V7Gb-IZW4zenkef5Q/edit?usp=sharing >>>> >>>> https://docs.google.com/document/d/1q-etBNGrXUVlLnr0pe2mKXbM >>>> 52urrY9im_4VQXNQlYQ/edit?usp=sharing >>>> >>>> Let me know if you need any help with this. >>>> >>>> Regards, >>>> Jorge >>>> >>>> On Wed, Jul 26, 2017 at 6:37 PM, Jorge Fernandez <jorge at fundingbox.com> >>>> wrote: >>>> >>>>> Sure, there is a method to do that, Iet me check the opencall data >>>>> schema and I'll provide you the details. >>>>> >>>>> Regards, >>>>> Jorge >>>>> >>>>> On Wed, Jul 26, 2017 at 6:35 PM, Filippo Giuffrida < >>>>> filippo.giuffrida at eng.it> wrote: >>>>> >>>>>> Hi Jorge, >>>>>> >>>>>> we need a REST WS to publish the ideas from FIA to FundingBox, as >>>>>> last step of each idea management >>>>>> >>>>>> Could you please provide us the details about it, included all info >>>>>> that FundingBox need ? >>>>>> >>>>>> Thank you in advance >>>>>> >>>>>> *Filippo* >>>>>> -- >>>>>> *Filippo Giuffrida* >>>>>> Researcher, Member of the Public Administration Innovation Unit >>>>>> Research and Development Lab. >>>>>> filippo.giuffrida at eng.it >>>>>> >>>>>> *Engineering Ingegneria Informatica spa* >>>>>> Viale Regione Siciliana N.O. n.7275 >>>>>> 90146, Palermo (Italy) >>>>>> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >>>>>> Operator +39 - 091 7511711 <+39%20091%20751%201711> >>>>>> www.eng.it >>>>>> >>>>>> ____________________________________________________________ >>>>>> ______________________________ >>>>>> >>>>>> You can get more information about our cookies and privacy policies >>>>>> on the following links: >>>>>> - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index. >>>>>> php/FIWARE_Privacy_Policy >>>>>> - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index. >>>>>> php/Cookies_Policy_FIWARE >>>>>> >>>>>> Fiware-fia-fundingbox-integration mailing list >>>>>> Fiware-fia-fundingbox-integration at lists.fiware.org >>>>>> https://lists.fiware.org/listinfo/fiware-fia-fundingbox-integration >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> -- >>>> *Filippo Giuffrida* >>>> Researcher, Member of the Public Administration Innovation Unit >>>> Research and Development Lab. >>>> filippo.giuffrida at eng.it >>>> >>>> *Engineering Ingegneria Informatica spa* >>>> Viale Regione Siciliana N.O. n.7275 >>>> 90146, Palermo (Italy) >>>> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >>>> Operator +39 - 091 7511711 <+39%20091%20751%201711> >>>> www.eng.it >>>> >>> >>> >>> -- >>> *Filippo Giuffrida* >>> Researcher, Member of the Public Administration Innovation Unit >>> Research and Development Lab. >>> filippo.giuffrida at eng.it >>> >>> *Engineering Ingegneria Informatica spa* >>> Viale Regione Siciliana N.O. n.7275 >>> 90146, Palermo (Italy) >>> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >>> Operator +39 - 091 7511711 <+39%20091%20751%201711> >>> www.eng.it >>> >> >> >> -- >> *Filippo Giuffrida* >> Researcher, Member of the Public Administration Innovation Unit >> Research and Development Lab. >> filippo.giuffrida at eng.it >> >> *Engineering Ingegneria Informatica spa* >> Viale Regione Siciliana N.O. n.7275 >> 90146, Palermo (Italy) >> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >> Operator +39 - 091 7511711 <+39%20091%20751%201711> >> www.eng.it >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-fia-fundingbox-integration/attachments/20170911/22313e0b/attachment-0001.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy