Thursday, April 13, 2017

Swagger

Swagger is a powerful open source framework backed by a large ecosystem of tools that helps you design, build, document, and consume your RESTful APIs.

Monday, December 5, 2016

API format -- JSON, Curl




  • API formats:
    • I am thinking API could be in the following formats: JSON, Curl .....
    • JSON:
      • json validator: http://jsonlint.com/
      • Json viewer: http://jsonviewer.stack.hu/



Monday, November 28, 2016

Testing API using "Insomnia" Rest client




  • Running API using 'Insomnia':
    • Source: 
      • https://insomnia.rest/
      • https://insomnia.rest/documentation/environment-variables/
    • Steps to run API in Insomnia:
      • Give the API body in the JSON tab
      • Add headers in Headers tab
      • Select Post from drop down and give url and click on Send.
      • You should see output in window on the right.



Insomnia Request Templating

    • Quickly create requests:
      • Specify URL, payload, headers, and authorization all in one place. Then just hit send.

Insomnia Request Basic Authentication









    • View detailed responses:
      • Get all the details on every response. View status code, body, headers, cookies, and more!