|
|
To add a use case to Postman, follow these steps:
|
|
|
|
|
|
1) Go to the Swagger UI of the use case and **click on the API link**
|
|
|
|
|
|
<img src="https://i.loli.net/2021/04/27/bEX2hWIqvjVYCKo.jpg" title="" alt="1.jpg" width="396">
|
|
|
2. That link opens a web page, in which the content must be copied into a notepad and saved with the **.json extension**
|
|
|
|
|
|
<img src="https://i.loli.net/2021/04/27/5bjCRp3yzfuPODX.jpg" title="" alt="2.jpg" width="395">
|
|
|
|
|
|
3. To import this data into Postman, we must go to ***Import> File> Upload Files*** and select the document with a .json extension. Finally we import the Swagger to Postman by clicking on Import
|
|
|
|
|
|
<img title="" src="https://i.loli.net/2021/04/27/KrjhySaEcT3g5Pb.jpg" alt="3.jpg" width="396">
|
|
|
|
|
|
<img src="https://i.loli.net/2021/04/27/WcusobM97JfDKmt.jpg" title="" alt="4.jpg" width="396">
|
|
|
|
|
|
#### BaseURL and Certificates
|
|
|
|
|
|
For it to work correctly, we must do two things: check that the baseURL is correct and select the necessary certificates:
|
|
|
|
|
|
1) To check the baseURL, we must go to ***Collections> imported API name> Variables> baseUrl*** and check in **INITIAL VALUE** and **CURRENT VALUE** to see if address is correct
|
|
|
|
|
|
<img src="https://i.loli.net/2021/04/27/REjcUSxlH2MfstF.jpg" title="" alt="5.jpg" width="442">
|
|
|
|
|
|
2) To select the necessary certificates, we must go to ***File> Settings> Certificates> Add Certificate*** and fill in the fields with the URL of the Host, the port, the corresponding certificate files and a password if needed
|
|
|
|
|
|
<img title="" src="https://i.loli.net/2021/04/27/abEsqr71OdPlTML.jpg" alt="6.jpg" width="404"> |