Tailwind Logo

Using Postman

Related Technology

Published: 2020-03-19

In this issue, we will introduce Postman, a useful tool for development and testing. This tool is also very useful for Sitecore Content Hub and Sitecore Experience Platform / Commerce when developing web services integration.

What is Postman?

It is not very efficient to use development tools to submit to web services, retrieve results, etc., and then output the data. Postman is a very useful tool that allows you to access web services and see the results.

The basic plan is available for free, and paid plans allow for efficient team development.

Download

The tool can be downloaded by accessing the following website

postmandownload.png

Supported OS are Windows x32/x64, macOS, and Linux. Please install the software according to your environment.

Creation and operation of environment

The screen is structured so that reference data for accessing the Web service is displayed on the left side, and data to be processed can be set and entered from the center to the right side.

postmanhome.png

Some software provides reference data for using Postman, Sitecore Experience Commerce has it as an SDK, and Sitecore Content Hub also has sample data for use in training.

In the upper right corner of the screen, there is a drop-down box on this screen that allows you to select an environment. Initially, no environment is set up, so you will need to create your own environment.

postmanenvlist.png

By setting environment variables, it is possible to define frequently used server URLs and parameter-related items, and have requests that invoke Web services operate using those variables.

postmansampleenv.png

The above parameters can be used in the actual web request as follows.

postmansamplerequest.png

When actually executed, the data is displayed in Response. 200 is displayed in this sample screen as the HTTP execution result, and the data could be acquired without any problems.

postmanresult.png

Execution results can be checked

Summary

This is a brief introduction to Postman. There are many blogs that introduce how to use this tool, and its functions are simple and very easy to use. Even with the free plan, you can share your personal environment with multiple machines, and with the paid plan, you can collaborate with multiple people.

I think Postman will continue to appear on this blog from time to time in the future.

Tags