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-909

Currently 

http://<cps-servic>/ncmp/v1/ch/{cm-handle}

Will return just the (public) cm handle properties (metadata). Once state is implement this URI should also return the State details (more metadata) But then for convenience we want to have more specific URIs to return just state data and to return just Properties. so the client can choose from 3 options:

  1. http://<cps-servic>/ncmp/v1/ch/{cm-handle}
  2. http://<cps-servic>/ncmp/v1/ch/{cm-handle}/properties
  3. http://<cps-servic>/ncmp/v1/ch/{cm-handle}/state

Note: 'modules' have been agreed not to be part of this type of cm-handle data (there is a separate URI to get those). If needed a special URL can be proposed in the future to combine modules with other metadata e.g somethin like '/export?metadata=all'

A/C

  1. Agree exact URI's with team and stakeholders
  2. Agree respons details for each with team and stakeholders 
  3. Update documentation (OpenAPI ?)

(current) Structure (just properties)

Code Block
languageyml
titleCurrent Structure
{
    "cmHandle": "Bookstore",
     "publicCmHandleProperties": [
        {
            "Public-Book2": "Public Horror Book",
            "Public-Book1": "Public Sci-Fi Book",
            "Public-Book3": "Public Crime Book" 
        }
    ]
}


Properties

1URI

http://<cps-service>/ncmp/v1/ch/{cm-handle}/properties

2Response


Code Block
languageyml
{
	"
cmHandle": "Bookstore", "
publicCmHandleProperties": [
        	{
            	"Public-Book2":
 "Public Horror Book
 "Public Horror Book",
            	"Public-Book1":
 
 "
Public Sci-Fi Book
Public Sci-Fi Book",
            	"Public-Book3":
 "Public Crime Book
 "Public Crime Book" 
        	}
	]
}


State

Dependent on update to dmi-registry

1URI

http://<cps-service>/ncmp/v1/ch/{cm-handle}/state

2Response

Decide if just cmHandle state or does this include lock-reason if cm-handle in locked state

Code Block
languageyml
{
"cmHandle": "Bookstore",

	"state": {
            	...
        	}
}