HTTP Example:GET /rest/order/{key}
| API Example: RESTOrders.getOrder({'key': }); |
The order resource - Output:
- RESTOrdersBean.Order - the order found
- Produces:
- application/xml
- text/plain
|
HTTP Example:PUT /rest/order/{key}
| API Example: RESTOrders.putOrder({'key': , '$entity': }); |
Creates or updates a new order - Input:
- RESTOrdersBean.Order - the order to create or update
- Output:
- javax.ws.rs.core.Response
- Produces:
- application/xml
- text/plain
- HTTP return codes:
- 201 - if created
- 200 - if updated
|
HTTP Example:POST /rest/order/{key}
| API Example: RESTOrders.postOrder({}); |
- Output:
- javax.ws.rs.core.Response
- Produces:
- application/xml
- text/plain
|
HTTP Example:DELETE /rest/order/{key}
| API Example: RESTOrders.deleteOrder({}); |
- Output:
- javax.ws.rs.core.Response
- Produces:
- application/xml
- text/plain
|
HTTP Example:HEAD /rest/order/{key}
| API Example: RESTOrders.headOrder({}); |
- Output:
- javax.ws.rs.core.Response
- Produces:
- application/xml
- text/plain
|