mbarre / ticketresto-nc-rest

Rest API to get Ticket Restaurant Nouvelle Calédonie account details.
3 stars 4 forks source link

It works !..Postman integration #3

Closed adriens closed 6 years ago

adriens commented 6 years ago

2018-01-09 11_59_23-postman

To share the POSTMAN request (to make integrations easier for others), it would be conveniet to put auth parametrized. For now, i'm using the "No Auth" and it works...but i could not share it to Postman (https://www.getpostman.com/docs/postman/team_library/sharing)

adriens commented 6 years ago

Une fois partagé, on peut même monitorer les perfs du ws 😆

adriens commented 6 years ago

C'est trop de la balle @mbarre !!!

adriens commented 6 years ago

In postman, to tempalte the url, https://www.getpostman.com/docs/postman/sending_api_requests/requests

we have to use the following pattern :

https://ticketresto-nc-rest.herokuapp.com/accounts/:identifier/:password/balance

After that, in fact, before, variables should be stored on top of the collection sot API calls inherit from that.

adriens commented 6 years ago

Once var globally set (at the collection leve), the api call url is the following one :

https://ticketresto-nc-rest.herokuapp.com/accounts/{{identifier}}/{{password}}/balance

adriens commented 6 years ago

Ticket resto Collection set up ! Still have to get a look on how not ot share the keys, but i'mq uite confident that it should be feasible as this feature is usually used to provide API Key 😸

2018-01-09 12_29_53-postman

adriens commented 6 years ago

https://www.getpostman.com/docs/postman/environments_and_globals/variables

adriens commented 6 years ago

First ever live Postman API for ticket resto : https://documenter.getpostman.com/view/3489712/ticket-resto/7LuYy9B

adriens commented 6 years ago

It's a default generation than can be custmozed. The actual one is the one generated only by clicking "Next"

adriens commented 6 years ago

Test on the service collection :

we can see the service wakeup on the first call, the getting a standard response time on the second call :

2018-01-09 17_56_44-postman