Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Jira
serverONAP Jira
columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-731


Scope

...

It should be able to query all cmhandles with a given set of public cmhandle properties.

Requirements

  • We want all cm-Handles where both things are true.
  • Those properties also need to exist.
  • If query body does not follow supported structure return 400.
  • Empty query will return all cm-Handles.

A/C:

  1. Demo - with "and" behaviour
  2. CI Test - two attributes


Issues/Decisions

...

#IssueNotesDecision
1


...

Interface Proposal

#URIDesign NotesComment
1POST /ncmp/v1/data/ch/searches

Sample Request Payload:

Code Block
languageyml
{
  "publicCmHandleProperties" : {
          "Name-1" : "some-value",
          "Name-2" : "other-value"
   }
}


_____________________________________________________________________

Scenario
:
Method : POST
URI : {ncmpRoot}/ncmp/v1/data/ch/searches 
Header :
Content-Type: application/json


Request Body

Code Block
languageyml
{
  "publicCmHandleProperties" : {           
        "module1": "revision1",
		"module2": "revision2"    }
}


Response Body

Code Block
languageyml
[{
		"cmHandle": "cmHandle001",
		"cmHandleProperties": {
			"module1": "revision1",
			"module2": "revision2"
		}
	},
	{
		"cmHandle": "cmHandle002",
		"cmHandleProperties": {
			"module1": "revision1",
			"module2": "revision2"
		}
	}
]



2


Future Example (Out-of-scope)


POST /ncmp/v1/data/ch/searches


Code Block
languageyml
{
  "publicCmHandleProperties" : {
     "publicPropertyName-1" : "publicPropertyValue-1",
     "publicPropertyName-2" : "publicPropertyValue-2"
   },
  "modules": [
    {
           "moduleName": "", (Mandatory)
           "revision": "" (Optional)
        }
  ]
}

Modules here is to demonstrate future intentions of endpoint but is out of scope for this user story.


References

...