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!




No comments:

Post a Comment