Skip to main content

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

Sending your first request

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:

  1. Open nds-swe.github.io in your browser
  2. 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
  3. Paste the cURL in the command line and run
  4. 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.