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

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-782

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-777

Overview

draw.io Diagram
bordertrue
diagramNamewrite request
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth1051
revision10


  • Since the DMI Plugin always needs an request body for at least the 'Additional Parameters' CPS_NCMP wil have to use PUT or POST to make a any (read or) write request.
  • The actual operation will be determine with 'operation' field in body. If this is not supplied 'read' wil be assumed as the default operation irrespective of the HTTP method used

Operation Mapping, Success scenarios


Client →  CPS-NCMP

CPS-NCMP →  DMI-PluginDMI-Plugin →  SDNC-C
#RESTful MethodCodeResponseTypeRESTful MethodRequestbody.operationCodeResponseTypeObject ContentRESTful MethodCodeResponseType
1GET200ResponseEntity<Object>





POST

"read"





200





ResponseEntity<Object>



Object readGET200ResponseEntity<Object>
2POST201ResponseEntity<String>
*just name/id 
"create"

{"resourceIdentifier": "xyz"}

POST2xx?
3PUT200ResponseEntity<Object>
*just name/id 
"update"

{"resourceIdentifier": "xyz"}

PUT2xx?
4PATCH200ResponseEntity<String>
*just name/id 
"patch"

{"resourceIdentifier": "xyz"}

PATCH2xx?
5DELETE204ResponseEntity<Void>"delete"

{"resourceIdentifier": "xyz"}

DELETE204ResponseEntity<void>


Operation Mapping, Error scenarios (failed in mediation/SDN-C)


Client →  CPS-NCMP

CPS-NCMP →  DMI-PluginDMI-Plugin →  SDNC-C
#RESTful MethodCodeResponseTypeRESTful MethodRequestbody.operationCodeResponseTypeObject ContentRESTful MethodCodeResponseType
1GET500ResponseEntity<String>





POST

"read"





500





ResponseEntity<String>



String with (original) error detailsGET

4xx
5xx

?
2POST500ResponseEntity<String>"create"

String with (original) error detail

POST4xx
5xx
?
3PUT500ResponseEntity<String>"update"

String with (original) error detail

PUT4xx
5xx
?
4PATCH500ResponseEntity<String>"patch"

String with (original) error detail

PATCH4xx
5xx
?
5DELETE500ResponseEntity<String>"delete"

String with (original) error detail

DELETE4xx
5xx
ResponseEntity<void>


For more detail on the (error) response codes see: CPS Exceptions and REST APIs HTTP Response Codes#CPS-NCMP