Download Postman software login using google or custom account.
Step 1: Add api server root to environment
Click on settings wheel on right top corner and select Manage environment
Then click on add. in here you can add name for your connection, URL, token and other common variables.
Step 2: Define API call. (route)
Add {{url}} before route.
Eg: {{url}}/api/add-survey-question-answers
Step 3: Define headers.
you can define access_token in every api call header
Eg: Authorization:Bearer {{token}}
Step 4: Body
You can pass variables in body
Finally you can save your requests to collection. Collection can import export.
0 comments:
Post a Comment