Prerequisites¶
- Postman
How-to test any new API endpoints with Postman¶
-
Ensure that you deployed your changes to staging within your PR (read more here).
-
Inside of Postman, hit the Import button near the top left:
-
Inside the input box, enter the following link:
https://stg.codebloom.patinanetwork.org/v3/api-docs # or if you're testing things locally http://localhost:8080/v3/api-docs # or prod https://codebloom.patinanetwork.org/v3/api-docs -
Once it finishes importing the OpenAPI spec, hit
View Import Settingsand setFolder organizationtoTags:
- You can then hit
Importand rename the new collection to indicate the environment (e.g.Codebloom devorCodebloom stg)
How to authenticate requests in Postman¶
[!NOTE] These instructions require Google Chrome (or any Chromium based browser)
Prerequisites¶
- Install Postman Interceptor here
Instructions¶
-
Log into Postman Interceptor with the same account that you used to authenticate on your local Postman instance.
-
Swap to the
Sync Cookietab
- Enter in
stg.codebloom.patinanetwork.org(or local/prod) into the domain list
- Hit
Sync Cookies
-
Navigate to stg.codebloom.patinanetwork.org (or local/prod) and log in as you normally would (if you are logged in, log out then log back in).
-
Once authenticated, Postman Interceptor will automatically copy your authentication cookie to your local Postman client, and you can now hit endpoints under your user!