Skip to content

REST Controller

kyberpunk edited this page Dec 16, 2016 · 7 revisions

REST API Documentation for Pneuservis


Orders resources collection

Request: GET /pa165/rest/orders

Return orders collection
Http Code: 200 OK

Request: GET /pa165/rest/orders/{id}

Return order resource
Http Code: 200 OK

Request: POST /pa165/rest/orders/{id}

Create new order resource
Http Code: 201 CREATED

Request: PUT /pa165/rest/orders/{id}

Update order resource
Http Code: 201 CREATED

Request: DELETE /pa165/rest/orders/{id}

Delete order resource
Http Code: 204 NO CONTENT

Request: GET /pa165/rest/orders/{id}/billing

Return order resource billing
Http Code: 200 OK

Persons resources collection

Request: GET /pa165/rest/persons

Return people collection
Http Code: 200 OK

Request: GET /pa165/rest/persons/{id}

Return person resource
Http Code: 200 OK

Request: POST /pa165/rest/persons/{id}

Create new person resource
Http Code: 201 CREATED

Request: PUT /pa165/rest/persons/{id}

Update person resource
Http Code: 201 CREATED

Request: DELETE /pa165/rest/persons/{id}

Delete person resource
Http Code: 204 NO CONTENT

Clone this wiki locally