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
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.
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.
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.
The above parameters can be used in the actual web request as follows.
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.
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.