Versions Compared

Key

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

...

Analysis/Implementation Proposal

...

High level stepsJiras:

  1. Jira
    serverONAP Jira
    serverId425b2b0a-557c-3c0c-b515-579789cceedb
    keyCPS-901
  2. Jira
    serverONAP Jira
    serverId425b2b0a-557c-3c0c-b515-579789cceedb
    keyCPS-902
  3. Jira
    serverONAP Jira
    serverId425b2b0a-557c-3c0c-b515-579789cceedb
    keyCPS-903
  4. Jira
    serverONAP Jira
    serverId425b2b0a-557c-3c0c-b515-579789cceedb
    keyCPS-904


Possible High-Level Implementation Steps:

  1. Match all xpaths that contain "public"  in fragment table

    Code Block
    languagesql
    SELECT * FROM (
    	SELECT DISTINCT fragment.xpath  
    	FROM fragment
    	WHERE fragment.xpath LIKE '%public%'
    ) AS publicProperties;
    
    


  2. Iterate over the list and retrieve all attributes

  3. Iterate over the attributes and collect those instances that match
  4. Return collected list of cm handles

Interface Proposal

#URIDesign NotesComment(s)
1POST /ncmp/v1/data/ch/searches

Scenario :  Request received to return all cm handles matching properties given
Method   : POST
URI          : {ncmpRoot}/ncmp/v1/data/ch/searches 
Header    : Content-Type: application/json

Request Body

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


Response Body

Code Block
languageyml
[
	"cmHandle1",
	"cmHandle2",
	...,
	"cmHandleN"
]



...