Importing and running the CPS postman collections
Importing the CPS collections
To import the CPS collections and environment:
- Create a "Workspace" (or if you have one already you can use that)
- Click "Import" (or click "File" then "Import")
- Drag and drop the "postman-collection" folder into the import pop-up
- The collections and environment should now be imported
- Set the current environment to "CPS Environment" (usually at the top right. Default is "No Environment") This will provide the necessary variables such as "CPS_HOST" and "CPS_PORT" to allow the requests to be run
Running the collections
To run the requests in the collections simply select the request and click send. "Create Schema Set" in "CPS-CORE" requires a file to send the request. Example files are provided: "bookstore.yang" and "bookstore-types.yang" (these files must be zipped before adding them to the request)
Notes
When exporting postman collections tabs are used for spacing, so replacing all the tabs is necessary