References

CPS-577 - Getting issue details... STATUS

CPS-782 - Getting issue details... STATUS

CPS-777 - Getting issue details... STATUS

Overview


  • 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




  • No labels