...
- 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-Plugin | DMI-Plugin → SDNC-C |
---|
| RESTful Method | Code | ResponseType | RESTful Method | Requestbody.operation | Code | ResponseType | Object Content | RESTful Method | Code | ResponseType |
---|
1 | GET | 200 | ResponseEntity<Object> |
POST | "read" |
200 |
ResponseEntity<Object>
| Object read | GET | 200 | ResponseEntity<Object> |
2 | POST |
| 201 | ResponseEntity<String> *just name/id |
POST | "create" |
Wiki Markup |
---|
{"resourceIdentifier": "xyz"} |
| POST | 2xx | ? |
3 | PUT |
POST200 | ResponseEntity<Object> | "update" |
Wiki Markup |
---|
{"resourceIdentifier": "xyz"} |
| PUT | 2xx | ? |
4 | PATCH |
| 200 | ResponseEntity<String> *just name/id |
POST | "patch" |
Wiki Markup |
---|
{"resourceIdentifier": "xyz"} |
| PATCH | 2xx | ? |
5 | DELETE |
POST204 | ResponseEntity<Void> | "delete" |
Wiki Markup |
---|
{"resourceIdentifier": "xyz"} |
| DELETE | 204 | void |