当前位置:网站首页>Postman interface test V
Postman interface test V
2022-07-07 10:09:00 【Splendid Qianyang 813】
Catalog
Published API The document supports automatic update
Function interface
many Tab Pagination
Postman Support more tab page , Before this comparison, some API Debugging tools don't support multiple Tab page , such as Advanced Rest Client
many tab The benefits of :
Convenient in a tab Medium test , After getting the result , Copy and paste to another tab in , Continue testing other interfaces
Better than that tab1 in , After testing the interface for obtaining verification code , Copy the phone number and verification code , Paste the tab2 in , Continue to test the registered interface
Interface view mode
Postman By default Request and Response Up and down layout :
Click here in the lower right corner Two pane view
, It becomes left and right :
[info] The purpose of the left and right layout
For the amount of data , When you want to see the requested and returned data at the same time , It should be more useful .
Multicolor theme
Posman Support two themes :
Dark theme
The current theme is dark , Very good results :
Light color theme
You can switch to Light color theme :
API Document generation
After the developers in the background of the server have tested the interface , I intend to send all kinds of information about the interface to the user API When the front-end mobile terminal personnel , Often meet :
Or copy and paste -> The format is not friendly Or use Postman Middle shot -> Easy to see , But it's not easy to get API Interface, field and other text content Or use Postman Export to JSON -> json The information in the file is too complicated , Information that is not conducive to finding Or use documents , For example, write Markdown file -> But then API Changes to the need for real-time synchronization to modify the document , It can be troublesome This will cause others to view and use API It's very inconvenient when I'm at work .
-> Regarding this ,Postman Provides a release API
Preview and publish API file Let's introduce Postman How to preview and publish API file .
Briefly outline the steps
Collection
Move the mouse to a Collection, Click on Three points
Publish Docs
Publish
obtain Public URL
Someone else opens this Public URL, You can view it API file
preview API file
Click the greater than sign on the right of the group >
If it's just a preview , For example, the background developers can check it by themselves API Document , You can choose :View in web
Equivalent to clicking Publish Docs To publish :
View in Web after , Yes Publish The option to ( See the following screenshot )
View in Web after , The preview page opens :
such as :
Cow cloud
https://documenter.getpostman.com/collection/view/669382-42273840-6237-dbae-5455-26b16f45e2b9
And the example code on the right , You can also choose from the default cURL Change to something else :
Release API file
If you want to make this document visible to others , The click Publish:
Then it will open an address like this :
Postman Documenter
https://documenter.getpostman.com/collection/publish?meta=Y29sbGVjdGlvbl9pZD00MjI3Mzg0MC02MjM3LWRiYWUtNTQ1NS0yNmIxNmY0NWUyYjkmb3duZXI9NjY5MzgyJmNvbGxlY3Rpb25fbmFtZT0lRTUlQTUlQjYlRTclODklOUIlRTQlQkElOTE=
Click on Publish after , The corresponding public web address can be generated :
open API Interface document address :
https://documenter.getpostman.com/view/669382/collection/77fd4RM
You can see ( The same effect as the previous preview API Document. ):
such , Others can view the corresponding API Interface document .
Published API The document supports automatic update
Follow up if your own API After interface modification :
such as :
( It turned out , No need to enter the process of preview and release , To update the document , It is Postman Automatic support )
Someone else to refresh the page of the document :
https://documenter.getpostman.com/view/669382/collection/77fd4RM
You can see the updated content :
边栏推荐
- Enterprise practice | construction of banking operation and maintenance index system under complex business relations
- 【学习笔记-李宏毅】GAN(生成对抗网络)全系列(一)
- How to use Mongo shake to realize bidirectional synchronization of mongodb in shake database?
- CDZSC_2022寒假个人训练赛21级(1)
- 为什么安装mysql时starting service报错?(操作系统-windows)
- 2016 CCPC Hangzhou Onsite
- Hcip first day notes sorting
- Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
- There is a problem using Chinese characters in SQL. Who has encountered it? Such as value & lt; & gt;` None`
- Performance optimization record of the company's product "yunzhujia"
猜你喜欢
【原创】程序员团队管理的核心是什么?
Natapp intranet penetration
ORM模型--关联字段,抽象模型类
Pit using BigDecimal
Google colab loads Google drive (Google drive is used in Google colab)
VS Code指定扩展安装位置
Deconvolution popular detailed analysis and nn Convtranspose2d important parameter interpretation
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
Applet sliding, clicking and switching simple UI
Garbage disposal method based on the separation of smart city and storage and living digital home mode
随机推荐
企业实战|复杂业务关系下的银行业运维指标体系建设
[untitled]
Google colab loads Google drive (Google drive is used in Google colab)
ORM model -- associated fields, abstract model classes
哈夫曼编码压缩文件
2020 Zhejiang Provincial Games
Official media attention! The list of top 100 domestic digital collection platforms was released, and the industry accelerated the healthy development of compliance
大佬们,有没有遇到过flink cdc读MySQLbinlog丢数据的情况,每次任务重启就有概率丢数
Integer inversion
【ORM框架】
MongoDB创建一个隐式数据库用作练习
14th test
How to use Mongo shake to realize bidirectional synchronization of mongodb in shake database?
Future development blueprint of agriculture and animal husbandry -- vertical agriculture + artificial meat
能源路由器入门必读:面向能源互联网的架构和功能
Check the example of where the initialization is when C initializes the program
Hcip first day notes sorting
虚数j的物理意义
Pytest learning - dayone
STM32基础知识—内存映射