SoFunction
Updated on 2024-07-16

Several ways how Postman can export interfaces

Preface:

As usual with my posts.brief and precise use of style(Simple does work), you can call meSavior of newcomers in the workplaceI'm not going to say anything about this! Well not much to say, today this article is about how to export interface documents with postman! Solve how to share the use cases you tested with postman to your colleagues, so that they can import them directly into their postman, and quickly understand and familiarize themselves with the project.

Main article:

I. New interface folder

1. Select New Collection in the left directory to create a new interface folder, which will appear in the Collections directory on the left.

Second, the new interface saved to the folder, so that you can manage the interface, together with the export of the

1. The newly created test interface, as long as there is no ctrl+s save, will not be saved to the interface folder built in the first step

After the +s, it will pop up the Chinese comment for naming the interface, as well as the following to let you choose which interface folder to save it to

After to, the test interfaces that you have built will appear in the appropriate interface folder.

Third, how to export the interface folder in the interface as a whole

1. Open postman, then find your own interface folder, mouse over, click on the three points on the right, select export can be

2. After exporting, a .json file will be generated in the specified file directory.

IV. How to import previously saved interface files

1. Click on the upper right corner of the File->import

2. The following window will pop up to select the file, and then select the previously exported json file on it!

3. Finally, the interface appears in the list of coworkers, but also with the parameter

III. Potholes encountered

First, if you meet the new interface or the original interface changes, and then exported, so that others pour in, but found that there is a change, that is basically the cache in the trouble, at this time, if you want to make colleagues with their own postman interface is consistent, it is necessary to export before, clear down the history (the role of the equivalent of clearing the postman's cache).

So be sure to clear the history before exporting so that you can export the latest list of interfaces.

Second, if you do not want to export, postman has another function, which is the team sharing interface, you can also choose this mode.

Create a group on it, pull in your coworkers, and your interfaces will be shared online!

Summary:

Although the operation is very simple, but for those who do not know the partners, super practical, so we hurry to share it. As for what swagger, there are handwritten documents, if there is of course very good to use it, but each company situation is different, an old saying, more skills do not pressure body, hurry up and use it!

To this article on how to export the interface Postman several ways to this article, more related Postman export interface content please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!