...
Hide If | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
|
Show If | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
For every single of operation on the entities use the following templates and provide sample REST requests and responses.
Filtering and attribute selection rules are described in the TMF REST Design Guidelines. |
...
GET API/SLA/{ID}This Uniform Contract operation is used to retrieve the representation of a managed entity or a task.
Behavior :
Retrieving all SLAs where 'http://..//acme.com' is involved with "SLAProvider" role:
Retrieving all SLAs where 'http://…//mycompany.com' is involved with "SLAConsumer" role:
Retrieving all SLAs where 'http://…//John.Doe' is involved with "EndUser" role:
Retrieving all SLAs based on template '"http/www.acme.com/slaManagement/slaTemplate/42":
Retrieve sla with specified ID – only one SLA is returned:
|
...
...
PUT API/SLA/{ID}This Uniform Contract operation is used to completely update the representation of a managed entity or a task.
Behavior :
Description:
Behavior:
Updating the whole SLA – if you try to change the SLA ID itself an exception is returned. All fields with different values will be changed. If the request contains the same values like the current SLA representation, nothing is changed. If an element is empty in the request, the value of the element will be deleted. If it is a required element, an exception is returned.
|
...
...
PATCH API/SLA/{ID}Description:
Table of patchable attributes
|
...
...
...
POST API/SLA/{ID}Description:
Description, severity, type
The requester cannot generate the id – the id to identify the REST resource is generated automatically in the back-end. The correlationId can be set from external but is not mandatory.
|
Behavior :
|
...
...
|