Postman
Scramjet Rest API endpoints can be also be integrated to Postman API Platform with the following standardized steps, providing the easiness of importing Scramjet's Middleware.yaml file with minimum required modifications:
-
Download the file Middleware.yaml
-
Login to Postman
-
Go to My Workspace
-
Collections > Import > File > select/path/to/milddleware.yaml
-
Mark the Check box for Postman Collection/Scramjet Middleware then Import
-
Add Bearer Token to Middleware
-
Directory:
/Scramjet Middleware
-
Authorization
Type Token Bearer Token Scramjet Token -
Variables
Variable Initial value Current value baseUrl https://api.scramjet.cloud https://api.scramjet.cloud
-
-
Retreive Space-id from the MultiManager
-
Directory:
/Scramjet Middleware/api/spaces
-
Method:
[GET] Uses MultiManager
-
Authorization
Type Inherit auth from parent - Save Changes
- Click on Send button for the http GET request
- Copy the retreived
"id"
to be assigned to{Manager-id}
-
-
Replace
{Manager-id}
with the Space-id-
Directory:
/Scramjet Middleware/api/v1/space/managerId
-
Url Header
- Edit
{managerId}
field with the copied MultiManager"id"
- Save Changes if necessary
- Edit
-
Authorization
Type Inherit auth from parent
-
-
Retreive the Sth-id to be used as Host-id
-
Directory:
/Scramjet Middleware/api/v1/space/managerId/api/v1/list
-
Method:
[GET] STH list
-
Params/Path Variables
Key Value managerId MultiManager "id"
- Save Changes if necessary
-
Authorization
Type Inherit auth from parent - Save Changes
- Click on Send button for the http GET request
- Copy the retreived
"id"
to be assigned to{hostId}
-
-
Replace Host-id with the Sth-id
-
Directory:
/Scramjet Middleware/api/v1/space/managerId/api/v1/sth/{hostId}
-
Url Header
- Edit
{hostId}
field with the copiedsth-id
from the list - Save Changes if necessary
- Edit
-
Authorization
Type Inherit auth from parent
-
Other API endpoints might require the retrieval of Space-id and Sth-id to be used as Parameter Path Variable values of {managerid} and {hostid} respectively.