diff --git a/spec/README.md b/spec/README.md index 783aeaa..d4f23eb 100644 --- a/spec/README.md +++ b/spec/README.md @@ -284,7 +284,7 @@ A new id is created for the appended route so it can be referenced later. } ``` * **Success Responses**: - * **Code**: `200 OK`
+ * **Code**: `201 Created`
**Header**: `Content-Type: application/json`
**Content**:
```json @@ -329,17 +329,7 @@ Removes the route identified by `:id`. * **URL**: `/routes/:id` * **Method**: `DELETE` * **Success Responses**: - * **Code**: `200 OK`
- **Content**:
- ```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**:
diff --git a/spec/test/features/control/delete/success.feature b/spec/test/features/control/delete/success.feature index 008b3b1..5a4a3f2 100644 --- a/spec/test/features/control/delete/success.feature +++ b/spec/test/features/control/delete/success.feature @@ -12,4 +12,3 @@ Feature: Delete routes in Kapow! server. When I delete the first route Then I get 200 as response code And I get "OK" as response reason phrase - And I get an empty response body