Important: | During virtualization of an API, CentraSite does not support the following HTTP methods: HEAD, OPTIONS, TRACE, and CONNECT. This is because, when a Virtual Service (API) is published to Mediator, at run-time, CentraSite only supports GET, POST, PUT, PATCH, and DELETE. |
Resource URI | Supported HTTP Methods | Description |
/phones | GET | List all phones. |
/phones | POST | Creates a new phone with product code 412456. |
/phones/412456 | GET | Retrieves details of a phone whose product code is 412456. |
/phones/412456 | DELETE | Removes a phone whose product code is 412456. |
/phones/412456?fields=(make,features, bodytype) | GET | Retrieves additional details (such as Brand, Features, Body Type) of a phone whose product code is 412456. |
/phones/412456/make | GET | Identifies the brand of a phone whose product code is 412456. |
/phones/search?q=(make,eq,apple) | GET | Retrieves a list of all phones whose brand is Apple. |
/phones/412456?make=apple&features=3g | PUT | Updates a phone whose product code is 412456, brand is Apple, and also 3G compatible. |
/phones/412456/ | PATCH | Partial update for a specific phone. |