CPS-2504: Update packaged postman collection to include all rest endpoints
CPS-2504: Update packaged postman collection to include all rest endpointsClosed
Assumptions
Assumption | Notes | |
|---|---|---|
| 1 | CPS core endpoints will use bookstore example data to demonstrate functionality |
|
| 2 | NCMP endpoints will use ‘realistic’ data found in CPS-2339 to demonstrate functionality |
|
Issues & Decisions
Issue | Notes | Decision | |
|---|---|---|---|
| 1 |
|
|
|
| 2 |
|
|
|
| 3 |
|
|
|
Endpoints
CPS
CPS-Admin
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| POST | *DEPRECATED* Create a new dataspace |
|
| 2 |
| DELETE | Delete a dataspace |
|
| 3 |
| POST | Create a new dataspace |
|
| 4 |
| GET | Read all dataspaces |
|
| 5 |
| GET | Read a dataspace given a dataspace name |
|
| 6 |
| POST | *DEPRECATED* Create a new anchor in the given dataspace |
|
| 7 |
| POST | Create a new anchor in the given dataspace |
|
| 8 |
| GET | Read all anchors, given a dataspace |
|
| 9 |
| DELETE | Delete an anchor given an anchor name and a dataspace |
|
| 10 |
| GET | Read an anchor given an anchor name and a dataspace |
|
| 11 |
| POST | *DEPRECATED* Create a new schema set in the given dataspace |
|
| 12 |
| POST | Create a new schema set in the given dataspace |
|
| 13 |
| GET | Read all schema sets, given a dataspace |
|
| 14 |
| DELETE | Delete a schema set given a schema set name and a dataspace |
|
| 15 |
| GET | Read a schema set given a schema set name and a dataspace |
|
CPS-Data
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| GET | *DEPRECATED* Get a node with an option to retrieve all the children for a given anchor and dataspace |
|
| 2 |
| GET | Get a node with an option to retrieve all the children for a given anchor and dataspace |
|
| 3 |
| DELETE | Delete a datanode for a given dataspace and anchor given a node xpath. |
|
| 4 |
| PATCH | Update a data node leaves for a given dataspace and anchor and a parent node xpath. This operation is currently supported for one top level data node only. |
|
| 5 |
| POST | Create a node for a given anchor and dataspace |
|
| 6 |
| PUT | Replace a node with descendants for a given dataspace, anchor and a parent node xpath |
|
| 7 |
| DELETE | *DEPRECATED* Delete one or all list element(s) for a given anchor and dataspace |
|
| 8 |
| POST | Add list element(s) to a list for a given anchor and dataspace |
|
| 9 |
| PUT | Replace list content under a given parent, anchor and dataspace |
|
| 10 |
| GET | Get delta between two anchors within a given dataspace |
|
| 11 |
| POST | Get delta between an anchor in a dataspace and JSON payload |
|
CPS-Query
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| GET | *DEPRECATED* Query data nodes for the given dataspace and anchor using CPS path |
|
| 2 |
| GET | Query data nodes for the given dataspace and anchor using CPS path |
|
| 3 |
| GET | Query data nodes for the given dataspace across anchors using CPS path |
|
NCMP
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| DELETE | Delete resource data from pass-through running for a given cm handle |
|
| 2 |
| GET | Get resource data for given cm handle |
|
| 3 |
| PATCH | Patch resource data from pass-through running for the given cm handle |
|
| 4 |
| POST | create resource data from pass-through running for given cm handle |
|
| 5 |
| PUT | Update resource data from pass-through running for the given cm handle |
|
| 6 |
| POST | Execute a data operation for group of cm handle ids |
|
| 7 |
| GET | Query resource data for a given cm handle |
|
| 8 |
| GET | fetch all module references (name and revision) for a given cm handle |
|
| 9 |
| GET | Get module definitions (module name, revision, yang resource) with options to filter on module name and revision |
|
| 10 |
| POST | Execute cm handle query search and return a list of cm handle details. |
|
| 11 |
| GET | Retrieve CM handle details and properties by cm handle id |
|
| 12 |
| GET | Get CM handle properties by cm handle id |
|
| 13 |
| POST | Execute cm handle query search and return a list of cm handle ids. |
|
| 14 |
| PUT | Set the data sync enabled flag to true or false for a specified Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and NONE_REQUESTED respectfully. |
|
| 15 |
| GET | Get CM handle state by cm handle id. (Not event driven, moved out of CPS-E-08.e) |
|
NCMP-Inventory
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| POST | Register a DMI Plugin with any new, updated or removed CM Handles |
|
| 2 |
| GET | Get all cm handle IDs for a registered DMI plugin |
|
| 3 |
| POST | Query and get CM Handle Ids for additional properties, public properties and registered DMI plugin (DMI plugin, DMI data plugin, DMI model plugin). |
|
DMI-Stub
URI | Rest Method | Description | Notes | |
|---|---|---|---|---|
| 1 |
| POST | Get all modules for given cm handle |
|
| 2 |
| POST | Retrieve module resources for one or more modules |
|
| 3 |
| POST | register given list of cm handles (internal use only) |
|
| 4 |
| POST | Get resource data from passthrough operational or running for a cm handle |
|
| 5 |
| POST | Execute a data operation for group of cm handle ids by supplied operation details |
|