<> preface

Users are developing or debugging web programs or web pages B/S Mode program needs some methods to track web page requests , Users can use some network monitoring tools, such as the famous Firebug And other web debugging tools . I'd like to introduce you today postman Add, delete, modify and query basic interfaces HTTP request !Postman On the sending network HTTP In terms of requests, it can be said that Chrome One of the representative products in plug-in products .

<> Environment settings

The first step :

Step two :
The picture shows that I set it up before , I won't go into details , It's very simple

The third step :

<> Query interface

1. mode : get ( Single query )
ip: localhost:9001/api/role/1

among 1 yes id=1, Directly behind the path

<> New interface

1. mode : post
ip: localhost:9001/api/role

body It's filled with json The form of

<> Modify interface

1. mode : put
ip: localhost:9001/api/role/3

Modification and addition are similar

<> Delete interface

1. mode : delete
ip: localhost:9001/api/role
Batch delete

headers still application/json

<> List query interface

1. mode : get ( Single query )
ip: localhost:9001/api/role

Technology