spec: document route deletion
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
+19
-2
@@ -288,14 +288,31 @@ TODO
|
|||||||
|
|
||||||
#### Delete a route
|
#### Delete a route
|
||||||
* **URL**
|
* **URL**
|
||||||
|
|
||||||
|
`/routes/:id`
|
||||||
|
|
||||||
* **Method**
|
* **Method**
|
||||||
* **URL Params**
|
|
||||||
* **Data Params**
|
`DELETE`
|
||||||
|
|
||||||
* **Success Response**
|
* **Success Response**
|
||||||
|
|
||||||
|
* **Code**: `200 OK`<br />
|
||||||
|
**Content**: TODO
|
||||||
|
|
||||||
* **Error Response**
|
* **Error Response**
|
||||||
|
|
||||||
|
* **Code**: `404 Not Found`<br />
|
||||||
|
**Header**: `Content-Type: application/json`<br />
|
||||||
|
**Content**: `{ "error": "Unknown route", "route_id": "{{ :id }}" }`
|
||||||
|
|
||||||
|
|
||||||
* **Sample Call**
|
* **Sample Call**
|
||||||
|
TODO
|
||||||
|
|
||||||
* **Notes**
|
* **Notes**
|
||||||
|
|
||||||
|
|
||||||
### Handlers
|
### Handlers
|
||||||
|
|
||||||
#### Get the value for a handler key
|
#### Get the value for a handler key
|
||||||
|
|||||||
Reference in New Issue
Block a user