References
Jira |
---|
server | ONAP Jira |
---|
serverId | 425b2b0a-557c-3c0c-b515-579789cceedb |
---|
key | CPS-1236 |
---|
|
Assumptions
REST endpoint (POST) : /ncmpInventory/v1/ch/cmhandles?dmiPlugin=<dmi-cm-plugin-identifier>/properties | 2 | Request body: {
additional-properties: [
{name: xx, value: xx}...
]
}If the query finds no matching CMHandle whe shall return an empty list (HTTP 200 – 'no cm handles') |
|
Issues & Decisions
# | Issue | Notes | Decision |
---|
1 | What type should be returned? | Should we return objects(if yes which type?) or just the filtered IDs of objects/entities? | List<String> (cmHandleIds) conform(cps-1136) |
2 | Private/public or both fields should be queried? | Based on the ticket's description only private fields should be queried but public fields were also considered Team thinks only private is needed | Need to check with kieran mccarthy |
3 | What REST endpoint shall be created? | Describe the endpoint | (POST) : /ncmpInventory/v1/ch/searches |
4 | What request body should be created?
| The request body shall take multiple additional-properties. We will reuse the previous request
Difference: the inventory IF will have access to private properties (hasAllAdditionalProperties => only private props) |
Code Block |
---|
title | Request body |
---|
collapse | true |
---|
| {
"cmHandleQueryParameters": [
{
"conditionName": "cmHandleWithDmiPlugin",
"conditionParameters": [ {"dmiPluginName": "sampleName"} ]
},
{
"conditionName": "hasAllProperties",
"conditionParameters": [ {"Color": "yellow"} ]
},
{
"conditionName": "hasAllAdditionalProperties",
"conditionParameters": [ {"Color": "yellow"} ]
}
] } |
|
5 | Will this make the previous endpoint redundant? (csp-1136) |
|
|