Import and use Swagger documentation in Postman
Requirements
-
API endpoint has been created
-
API key for the endpoint has been created
-
Swagger documentation was created (.yml file) and saved in an accessible directory.
Step-by-step guide
To import and use Swagger documentation in Postman, proceed as follows:
Import Swagger Documentation
-
Launch Postman.
-
Click on the "APIs" menu item in the left navigation area.
-
Click on "Import".
An import dialog is displayed.
-
Select the previously saved .yml file.
-
Click on "Import".
A dialog confirming the import will be displayed.
The Intrexx API is displayed.
Deposit API key
-
Click the directory with the name of the imported Swagger documentation.
-
Click the Authorization tab.
-
In the Type drop-down list, select the "API Key" value ().
-
Enter the value "X-API-KEY" in the "Key" input field ().
-
In the "Value" input field, enter the API key that you copied from Intrexx ().
-
In the "Add to" selection field, select the "Header" value ().
-
Save the information.
Executing requests
You can now execute the requests.
-
Click (for example) on the API endpoint "Get-one-data-record-in-store" ().
-
On the "Params" tab, in the "VALUE" column, replace the "tempor Duis" value with the primary key of the record you want to query ().
-
Click "Send".
The return values you define are displayed under "Body" ().
More information