Post

2. Introducing Postman

An API Platform

Postman is an API platform for building and using APIs.

Working with APIs then and now: cURL vs. Postman

Before Postman, it was common practice to poke APIs with the command-line tool curl. This tool is still used today but has its limitations when it comes to collaboration and sharing.

This is an example of what an API call using curl looks like:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$ curl https://api.github.com/users/postmanlabs
{
  "login": "postmanlabs",
  "id": 10251060,
  "node_id": "MDEyOk9yZ2FuaXphdGlvbjEwMjUxMDYw",
  "avatar_url": "https://avatars.githubusercontent.com/u/10251060?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/postmanlabs",
  "html_url": "https://github.com/postmanlabs",
  "followers_url": "https://api.github.com/users/postmanlabs/followers",
  "following_url": "https://api.github.com/users/postmanlabs/following{/other_user}",
  "gists_url": "https://api.github.com/users/postmanlabs/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/postmanlabs/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/postmanlabs/subscriptions",
  "organizations_url": "https://api.github.com/users/postmanlabs/orgs",
  "repos_url": "https://api.github.com/users/postmanlabs/repos",
  "events_url": "https://api.github.com/users/postmanlabs/events{/privacy}",
  "received_events_url": "https://api.github.com/users/postmanlabs/received_events",
  "type": "Organization",
  "site_admin": false,
  "name": "Postman Inc.",
  "company": null,
  "blog": "https://www.postman.com/",
  "location": "United States of America",
  "email": "help@postman.com",
  "hireable": null,
  "bio": "An API platform for building and using APIs",
  "twitter_username": "getpostman",
  "public_repos": 174,
  "public_gists": 0,
  "followers": 2008,
  "following": 0,
  "created_at": "2014-12-20T08:13:58Z",
  "updated_at": "2022-11-28T22:51:35Z"
}

It works great, but once you make the call, the API response data is lost in the river of the terminal. You also don’t have visibility of the metadata of the response without adding more details to the command.

Here is the same call done with Postman:

  • It shows the response with clan indents and colors
  • It allows you to save, organize and share your requests
  • You can see the components of the request and response broken down into tabs and other helpful details.

The API First World

Postman has a vision for an API-First World - one where 100 million developers are connected through APIs, and APIs take center stage as primary building blocks. In the API-first world:

  • APIs are considered a #1 priority.
  • APIs are easily consumable.
  • APIs are easily discoverable.

The API-FIRST WORLD novel.

Gettings started with Postman

Follow along because you must submit your Postman Workspace later to complete this course.

Open Postman for web

You can use Postman as a desktop app or web browser. We will use the latter for the course.

  1. Navigate to https://www.postman.com/.
  2. Sign in or sign up (it’s free).
  3. Install Postman Agent. This micro-app will help you overcome the browser’s limitations when making API calls.
This post is licensed under CC BY 4.0 by the author.