Postman Hacks

Postman is an API platform that allows you to create and use APIs.

Postman streamlines collaboration and simplifies each phase of the API lifecycle, allowing you to design better APIs faster. Let’s start testing.

Table Of Content
🥦 Environment vari…


This content originally appeared on DEV Community and was authored by Abayomi Ogunnusi

Postman is an API platform that allows you to create and use APIs.

Postman streamlines collaboration and simplifies each phase of the API lifecycle, allowing you to design better APIs faster. Let's start testing.

testing

Table Of Content
🥦 Environment variables
🥦 Generating random names
🥦 Postman Console
🥦 Path variable

Environment variables

Duplicating codes and links during API testing is always a hassle.
First, highlight the url and set it as a variable.

Image description

Now imagine writing this whole baseUrl for every instances of GET, POST, DELETE, PUT and PATCH request. It get tiresome. There is a hack to this.

Image description

Image description

Image description

Also, when you can set token as variable with few steps. Highlight the token and set it as a variable.
Image description

Image description

Image description

Image description

Generating random names

This is my favorite, ever want to register new users and your brain just ran out of John Doe. Do not worry, help is on the way. This generate random name and email

Image description

Postman Console

Postman also has its own console, where you may see a log of server responses.
Image description

Image description

Path variable

Image description

Conclusion

This is just a quick overview of what you can do with Postman to test APIs.
Googling what postman can accomplish will provide you with more functionality.
Thank you for taking the time to read this.


This content originally appeared on DEV Community and was authored by Abayomi Ogunnusi


Print Share Comment Cite Upload Translate Updates
APA

Abayomi Ogunnusi | Sciencx (2021-11-30T08:07:01+00:00) Postman Hacks. Retrieved from https://www.scien.cx/2021/11/30/postman-hacks/

MLA
" » Postman Hacks." Abayomi Ogunnusi | Sciencx - Tuesday November 30, 2021, https://www.scien.cx/2021/11/30/postman-hacks/
HARVARD
Abayomi Ogunnusi | Sciencx Tuesday November 30, 2021 » Postman Hacks., viewed ,<https://www.scien.cx/2021/11/30/postman-hacks/>
VANCOUVER
Abayomi Ogunnusi | Sciencx - » Postman Hacks. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/30/postman-hacks/
CHICAGO
" » Postman Hacks." Abayomi Ogunnusi | Sciencx - Accessed . https://www.scien.cx/2021/11/30/postman-hacks/
IEEE
" » Postman Hacks." Abayomi Ogunnusi | Sciencx [Online]. Available: https://www.scien.cx/2021/11/30/postman-hacks/. [Accessed: ]
rf:citation
» Postman Hacks | Abayomi Ogunnusi | Sciencx | https://www.scien.cx/2021/11/30/postman-hacks/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.