Postman
Send requests, inspect the response, and easily debug. - postman.com
๐ Postman
Use
It is basically cURL with an UI. Of course this is not true, Postman offers a variety of services and extended tooling around that you can not find in CURL. But the part we use, the Client with some requests, this is comparable to cURL with an UI. Two key characteristic of Postman over cURL are that you can manage request collections neatly in folders. This is very practical for our lectures and also in your daily-business to sort, store and share requests. Read more on Postman on their official docs. Also you can import and export code snippets raw to and from Postman which is also very handy.
Newman
Postman has a Command Line Runner called newman where you can run a Postman Collection from the command line.
Install
For our second tool, I only drop some breadcrumbs:
Get started
Postman ๐ cURL
This is the best part (and I like it so much I need to use more emojis)! You can import requests from cURL to Postman and also export requests as cURL ๐คฏ
The ๐ is that you can also export from any browser matching cURLs and import them to Postman or execute them with cURL ๐ฅ๐
Try this:
- Open nds-swe.github.io in your browser
- Open the developer tools, switch to the network tab, refresh (to get the entry in the list) and copy out the cURL request - here is a guide
- Paste the cURL in the command line and run
- Open Postman, click Import then
raw
, paste the cURL and run
Crazy stuff! ๐
Other formats
Postman can not only export cURL but also compose code for many other languages, check their export feature.
Alternatives
VSCode REST Client
Recently I came across REST Client and will soon convert this paragraph into an own article and recommend Postman only as alternative for one main reason - they offer a native VSCode integration with the capability to just place a .rest
file in your repository and be ready to go. This is As A Code
made simple!
IntelliJ HTTP Client
Sadly its part of the Ultimate Edition but in case you have one of these, you can find an inbuilt HTTP client like the one for VSCode also in IntelliJ.