Xiaobai uses the Postman tool to test the backend interface of Ruoyi

Recently, I am learning how to use Postman to test the interface. Since I am a novice, I am not familiar with it in my study and work, so I will record some problems encountered in the Postman tool.

 

Explain the 401 problem reported here: the original is that the interface cannot be directly requested by default, and the Authorization and Cookie accompanying the request address need to be obtained to access.

Next, I will show how Xiaobai can obtain Authorization and Cookie. Here are the simple steps:

1. Guaranteed login backend

 

2. Right click--"Check---"Network---"Check to get all data---"Refresh the page---"Find the file with list, and click to enter

3. Obtain the request URL: the last step in the second step === "header ===" request URL (ie, the target address)

4. Obtain Authorization and Cookie: The last step of the second step === "Header ===" Request Header (Header)

 

    Did you also learn it? Welcome to leave a message and communicate. If there are deficiencies, please advise!

Guess you like

Origin blog.csdn.net/weixin_52890053/article/details/130591531