Introduction Postman is a chrome plug-in for testing Web APIs that can be obtained free of charge and installed in Chrome by Google Store, which is useful for developers who are developing Web APIs, eliminating the task of writing test page calls. This article explains how to use postman when we want to have JSON data in the call to the Web API, as most of the usage scenarios we see are directly calling the Web API and not sending related required parameters with request.
Demand
Use the POST request, and you need to smuggle JSON data to the Web API tutorial
First, set the URL
Second, set the Content-type in the header
Third, set body
IV. Input test data in JSON format
Data returned by the interface
Summary
This tool is very handy for testing the backend interface when we are doing a front-end separation project. Finally say a new admission, please take care!
Postman test POST request parameters as JSON type