CentraSite Documentation : Working with REST-based APIs : About CentraSite RESTful API Model : Resource Methods : Supported HTTP Methods
Supported HTTP Methods
CentraSite supports the standard HTTP methods for modeling APIs: GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, TRACE, and CONNECT.
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.
The following table describes the semantics of HTTP methods for our sample Phone Store API:
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.
For information on the HTTP methods that CentraSite ships, in CentraSite Control, go to Administration > Taxonomies. On the Taxonomies page, enable the Show all Taxonomies option. Navigate to HTTP Methods in the list of taxonomies.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback