Basic usage of Postman
Updated on 28 Dec 2018
Using Postman is quite straight-forward.
1 - Add a collection
One of the first steps that you will do is to create a collection. A collection will house your related api calls and tests.
2 - Create an API call
Next will be to create an api call. Just go to a new tab and start typing in your api-endpoint (i.e. URL)
Example 1 - Get
A simple get is probably the easiest to use.
Example 2 - Post (JSON)
A more complex example is using POST
parameters and passing data in the Head section. This example shows how to pass JSON data.
Other examples in the collection show how to pass XML, use PUT, custom header variables, plus POST variables (both form-data
and x-www-form-urlencoded
)
Example 3 - Post (Post Variables)
Sending normal POST variables can also be done. You can specify whether this is used as form-data
or x-www-form-urlencoded
. Just specify the parameter name and value in the head section, and away you go.
Other examples in the collection show almost the full facet of using API calls.