Scroll Ignore | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Show If | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
For every single of operation on the entities use the following templates and provide sample REST requests and responses.
|
For every single of operation on the entities use the following templates and provide sample REST requests and responses.
Remember that the following Uniform Contract rules must be used :
Operation on Entities | Uniform API Operation | Description |
Query Entities | GET Resource | GET must be used to retrieve a representation of a resource. |
Create Entity | POST Resource | POST must be used to create a new resource |
Partial Update of an Entity | PATCH Resource | PATCH must be used to partially update a resource |
Complete Update of an Entity | PUT Resource | PUT must be used to completely update a resource identified by its resource URI |
Remove an Entity | DELETE Resource | DELETE must be used to remove a resource |
Execute an Action on an Entity | POST on TASK Resource | POST must be used to execute Task Resources |
Other Request Methods | POST on TASK Resource | GET and POST must not be used to tunnel other request methods. |
...
GET /customerManagement/customer/{ID}Note that collections can be retrieved via GET /customerManagement/customer without ID. In that case an array of customers is returned.
Behavior:
|
...
|
...
...
Behavior:
The below query pattern can be used to modify all the data for a single customer, if an attribute is not provided, the value of the attribute is deleted:
|
...
|
...
...
PATCH API/customerManagement/customer/{ID}This Uniform Contract operation is used to partially update the representation of a managed entity or a task.
Behavior:
Patchable attributes:
|
...
|
...
|
...
...
POST /customerManagement/customerThis Uniform Contract operation is used to create a customer.
Behavior:
|
...
|
...
|
...
|
...
Behavior:
|
...
GET customerManagement/customerAccount/{ID}Note that collections can be retrieved via GET /customerManagement /customerAccount with no {ID}
Behavior :
Examples: Get request with one customer including all attributes in the response. Filtering and attribute selection is described in the examples following.
|
...
|
...
...
PUT customerManagement/customerAccount/{ID}PUT is not supported for customerAccount as any modification can be handled through PATCH API. |
...
PATCH customerManagement/customerAccount/{ID}Description :
Note: -The requester cannot update the id. The lastModified attributes is updated automatically in the back-end.
|
...
POST customerManagement/customerAccount/{ID}Description :
Behavior :
The requester cannot generate the id. The id and lastModified attributes are generated automatically in the back-end.
|
...
DELETE customerManagement/customerAccount/{ID}Note customer account will be deleted via DELETE /customerAccount/{ID} and will not allow deletion of customers if no id is provided.
Behavior :
The following example shows deletion of customer account with filtration criteria based on id.
|
...
GET customerManagement/paymentMean/{ID}Note that collections can be retrieved via GET /customerManagement /paymentMean with no {ID}
Behavior :
Examples: Get request with one payment mean including all attributes in the response. Filtering and attribute selection is described in the examples following.
|
...
PUT customerManagement/paymentMean/{ID}PUT is not supported for paymentMean as any modification can be handled through PATCH API. |
...
PATCH customerManagement/paymentmean/{ID}Description :
|
...
...
Behavior :
The requester cannot generate the id. The id is generated automatically in the back-end.
|
...
DELETE customerManagement/paymentMean/{ID}Note payment mean will be deleted via DELETE /paymentMean/{ID} and will not allow deletion of paymentMean if no id is provided.
Behavior :
The following example shows deletion of paymentMean with filtration criteria based on id.
|
© TM Forum 2015. All Rights Reserved.
...