...
- actual YAML definitions (separate user story)
Jira | ||||||||
---|---|---|---|---|---|---|---|---|
|
Open Issues & Decisions
Description | Notes | Decision | |
---|---|---|---|
1 | Will we use the wrapper on GET rest operations? | Currently, we wrap the response of GET operations using the data node wrapper. | |
2 | In the URI will we distinguish between data and operations as part of the path? | e.g. http://localhost:8080/cps/api/v1/data | |
3 | Parent data resource identifier can handle any path | ||
4 | Yml update with return types with examples of the payload |
...
Yang data resource actions and RPC operations are run directly on the 'device' meaning ncmp-datastores:passthrough-running is used for these request
Req/usecase | REST Method | URI / Payload | Header Parameters | Request/Response Example | Status | |
---|---|---|---|---|---|---|
1 | NCMP-CM-001-1 Get model (module set) for CMHandle | GET | {ncmp-root}/ncmp/v1/model/<handleId> {ncmp-root}/ncmp/v1/model/ |
cmhandle/<cm-handle> | Accept: application/ yang- data+json | Scenario : Get the model data for CMHandle with id "335ff" Response :
| Under Review | ||
2 | NCMP-CM-001-4 Create a data resource for a cmhandle | POST | {ncmp-root}/ncmp/v1/cm-handle/<cmhandle>/ds |
/ncmp-datastores:passthrough-running/{parent-data-resource-identifier}
|
cmhandle/<cm-hande>/{parent-data-resource-identifier} | Accept: application/ yang- data+json | Scenario : Create |
a data resource of the bookstore model for the given cmhandle. Method : POST RI : {ncmp-root}/ncmp/v1/cm-handle/34l5k32/bookstore Header : Accept: application/yang-data+json Body:
| Under Review | |||||||
3 | NCMP-CM-001-5 Delete a data resource for a cmHandle | DELETE | {ncmp-root}/ncmp/v1//ds/ncmp-datastores:passthrough-running/{data-resource-identifier} OR with datastores defaults {ncmp-root}/ncmp/v1/cmhandle// {parent-data-resource-identifier} | Accept: application/ yang- data+json | Scenario : Delete categories=SciFi do we follow xpath syntax? {adapter-root}??? | Under Review | ||
4 | NCMP-CM-001-3 Update a data resource for a cmHandle | PATCH | {ncmp-root}/ncmp/v1/data//ds/ncmp-datastores:passthrough-running/{data-resource-identifier} { OR with datastores defaults {ncmp-root}/ncmp/v1/cmhandle// {parent-data-resource-identifier} { | Accept: application/ yang- data+json | Scenario : Add a book to categories SciFi if it doesn't already exist Header : Body :
| Under Review | ||
5 | NCMP-CM-001-8 Multiple edits under a target data | PATCH | {ncmp-root}/ncmp/v1/cm-handle//ds /ncmp-datastores:passthrough-running/{data-resource-identifier} { yang-patch payload } OR using datastores defaults {ncmp-root}/ncmp/v1/cm-handle//{data-resource-identifier} { yang-patch payload } | Content-Type: application/yang-patch+json | Scenario: Make multiple updates under the bookstore/categories data resource Method : PATCH URI : {ncmp-root}/ncmp/v1/cm-handle/32rf234/bookstore/categories Header : Body:
Response : | Under Review | ||
6 | ||||||||
7 | ||||||||
8 | ||||||||
9 | ||||||||
10 | ||||||||
11 | ||||||||
12 | ||||||||
13 | ||||||||
14 | ||||||||
15 | ||||||||
16 | ||||||||
17 |