当前位置:网站首页>Postman interface test III

Postman interface test III

2022-07-07 10:09:00 Splendid Qianyang 813

Catalog

Response thorough

Response Data display mode

Response Of Cookies

Response Of Headers Header information

Save multiple Example

How to add Example

Single Example In the export of API The effect in the document

Multiple Example In the export of API The effect in the document


Response thorough

Response Data display mode

Postman For the returned Response data , Three display modes are supported .

  • Default Formatted Pretty Pattern

  • Raw Primitive mode

Click on Raw, You can view the returned raw data without formatting :

  • Preview Preview Mode

as well as Preview, It's corresponding to Raw Preview mode in original format :

Preview The display effect of this mode , It seems that the return is html Pages like this , It's more effective .

Response Of Cookies

Most of the time, ordinary API call , Not really Cookie Of :

Response Of Headers Header information

give an example , What is returned here is Headers Head message :

You can see from the server Nginx Of .

Save multiple Example

I wanted to achieve , Let the exported API In the document, you can see the... Returned by the interface Response data . Later it was found that Example This function is used to achieve this effect .

How to add Example

Continue clicking Save Example:

After the save , You can see Example(1) 了 :

Single Example In the export of API The effect in the document

Then export the document , Examples of returned data can indeed be seen in the export document : 

Multiple Example In the export of API The effect in the document

 

原网站

版权声明
本文为[Splendid Qianyang 813]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130623332868.html