Append and Insert should return 201 on success. Delete should return 204 on success with no content.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-23 11:48:18 +02:00
parent 71bca13fed
commit 90c0c6ddb7
2 changed files with 2 additions and 13 deletions
+2 -12
View File
@@ -284,7 +284,7 @@ A new id is created for the appended route so it can be referenced later.
}
```
* **Success Responses**:
* **Code**: `200 OK`<br />
* **Code**: `201 Created`<br />
**Header**: `Content-Type: application/json`<br />
**Content**:<br />
```json
@@ -329,17 +329,7 @@ Removes the route identified by `:id`.
* **URL**: `/routes/:id`
* **Method**: `DELETE`
* **Success Responses**:
* **Code**: `200 OK`<br />
**Content**:<br />
```json
{
"method": "GET",
"url_pattern": "/hello",
"entrypoint": null,
"command": "echo Hello World | response /body",
"index": 0
}
```
* **Code**: `204 No Content`
* **Error Responses**:
* **Code**: `404 Not Found`
* **Sample Call**:<br />