-
Notifications
You must be signed in to change notification settings - Fork 4
Testing API endpoints
- Prerequisites
- How-to test any new API endpoints with Postman
- How to authenticate requests in Postman
- 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)
Note
These instructions require Google Chrome (or any Chromium based browser)
- Install Postman Interceptor here
-
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!
- Home
- Setup
- Developer Commands
- Secrets
- Technical Docs
- Feature Docs
- CI Commands
- Contributing
- Codebloom ↗
- Codebloom - Swagger Documentation ↗
- Codebloom - Staging ↗
- Codebloom - Staging - Swagger Documentation ↗
- Codebloom - Local - Swagger Documentation ↗
- Codebloom - Local - Prometheus Metrics ↗
- Grafana Dashboard - Separate domain
- Public Taskboard (Read-only) ↗