[Fiware-fia-fundingbox-integration] [FIGLOBAL] WS idea publication on FundingBox

Jorge Fernandez jorge at fundingbox.com
Mon Sep 11 12:40:37 CEST 2017


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_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"
>> <http://localhost:3000/documents/20194/ba7aa257-a972-4960-bdd6-d5a6611a5c32>
>> ,"type":"application/pdf","size":275663},{"filename":"File_num
>> ero2.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":{"partne
>> rs":["partner1","partner2","partner3"],"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":"filippo.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_
>> lPZLmH9V7Gb-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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-fia-fundingbox-integration/attachments/20170911/f9a354e2/attachment-0001.html>


More information about the Fiware-fia-fundingbox-integration mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy