POSTMAN Complete Reference Guide For API Testing
POSTMAN Complete Reference Guide For API Testing
It is a data format and primarily used to transport data between a server and web application. It
stands for JavaScript Object Notation.
1. Request Part
2. Response Part
3.
Request Part:
The below image contains a dropdown, we can use these field values as Request Method.
Secret: Bzb0hol5KAASPRFK
Example:
https://api.nytimes.com/svc/books/v3/lists.json
The status code should be 401(unauthorized) and indicates that you are not authorised
to access this resource.
Step2: According to the error message you have received, the API is expecting your
API key as a query parameter. The error that you see in the response body also
indicates that is wrong.
Go ahead and create a new query parameter called api-key and put the API key you
have received in the Value field.
Step3: Try adding a GET query parameter called list with any value you want.
The response will be empty but the status code will be 200, because you have provided
all required parameters.
OAuth: a244a87b624b3f600d7fa1bfbf18b6bfaa8bf71c05ac072859d93c29019a4e66
Token: 6f103da0e4614f0bc9bfc88e8df6dca060af6afcd908f49dbe56ac887d6ce684
{
"id": "5f3cc453bcd80f04df28c7cc",
"name": "New Testing Board",
"desc": "",
"descData": null,
"closed": false,
"idOrganization": null,
"idEnterprise": null,
"pinned": false,
"url": "https://trello.com/b/GjsE4h4J/new-testing-board",
"shortUrl": "https://trello.com/b/GjsE4h4J",
"prefs": {
"permissionLevel": "private",
"hideVotes": false,
"voting": "disabled",
"comments": "members",
"invitations": "members",
"selfJoin": true,
"cardCovers": true,
"isTemplate": false,
"cardAging": "regular",
"calendarFeedEnabled": false,
"background": "blue",
"backgroundImage": null,
"backgroundImageScaled": null,
"backgroundTile": false,
"backgroundBrightness": "dark",
"backgroundColor": "#0079BF",
"backgroundBottomColor": "#0079BF",
"backgroundTopColor": "#0079BF",
"canBePublic": true,
"canBeEnterprise": true,
"canBeOrg": true,
"canBePrivate": true,
"canInvite": true
},
"labelNames": {
"green": "",
"yellow": "",
"orange": "",
"red": "",
"purple": "",
"blue": "",
"sky": "",
"lime": "",
"pink": "",
"black": ""
},
"limits": {}
}
https://api.trello.com/1/boards/:id/memberships?key={{key}}&token={{token}}
key:{{key}}
token:{{token}}
//id:5f3cc453bcd80f04df28c7cc
{
"id": "5f3cf04a9c066a40f2c27c66",
"name": "Hari Testing",
"desc": "",
"descData": null,
"closed": false,
"idOrganization": null,
"idEnterprise": null,
"pinned": false,
"url": "https://trello.com/b/wytS4uJA/hari-testing",
"shortUrl": "https://trello.com/b/wytS4uJA",
"prefs": {
"permissionLevel": "private",
"hideVotes": false,
"voting": "disabled",
"comments": "members",
"invitations": "members",
"selfJoin": true,
"cardCovers": true,
"isTemplate": false,
"cardAging": "regular",
"calendarFeedEnabled": false,
"background": "blue",
"backgroundImage": null,
"backgroundImageScaled": null,
"backgroundTile": false,
"backgroundBrightness": "dark",
"backgroundColor": "#0079BF",
"backgroundBottomColor": "#0079BF",
"backgroundTopColor": "#0079BF",
"canBePublic": true,
"canBeEnterprise": true,
"canBeOrg": true,
"canBePrivate": true,
"canInvite": true
},
"labelNames": {
"green": "",
"yellow": "",
"orange": "",
"red": "",
"purple": "",
"blue": "",
"sky": "",
"lime": "",
"pink": "",
"black": ""
}
}