Versions Compared

Key

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

References:

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

Overview

This user story relates to CPS-1001 Add CPS-E-05 endpoint for 'Read data, NCMP-Operational Datastore'

Redirect request to CPS-Core (Using java interface) with dataspace 'NCMP-CmHandle-Operational-Data' 

Issues/Decisions

#Questions/Open IssuesNotesDecision/Answer
1Proposed Rest endpoint to read data "http://{cnmpHostName}:{ncmpPost}/ncmp/v1/ch/{cm-handle}/data/ds/ncmp-datastores : operational (Hardcoded)"

/ds is datastore

/../ncmp-datastores : operational (Hardcoded)

2Will be using GET http methos to expose rest endpoint ?
Agreed
3What if restendpoint contains  ../options ?

 

Ignore If it is there in endpoint.
4 Do we need to append "?xpath=/" with proposed rest endpoint to fetch root elements or should it be added while redirecting to cps core(using java interface)? 
Use "?resourceIdentifier=/" that would be mapped to xpath.
5 Do we need to append "&include-descendants=true/false" with rest endpoint or should be added while redirecting to cps core(using java interface)?

6Do we need to support only RootXpath or can accept xpath from endpoint to filter result ?
Support only xpath in this scope.
7To query/redirect to cps core we need 3 attributes from enduser how it would be mapped?



  • dataspaceName : "ncmp-datastores: operational" will be mapped to NFP-Operational
  • anchorName : cm-handle-id
  • xpath: ?resourceIdentifier=/ will be mapped to "/ " 
8If we pass topic query param with this endpoint should we use async ? 


Note : CPS Core java interface :

 public ResponseEntity<Object> getNodeByDataspaceAndAnchor(final String dataspaceName, final String anchorName, final String xpath, final Boolean includeDescendants)