From 8dbb3fb764cb8cdbbbc6369cd9862a60ef0f3c47 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 21 May 2019 13:10:40 +0200 Subject: [PATCH] spec: document route deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Roberto Abdelkader Martínez Pérez --- spec/README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/spec/README.md b/spec/README.md index 7f02a39..122a19d 100644 --- a/spec/README.md +++ b/spec/README.md @@ -288,14 +288,31 @@ TODO #### Delete a route * **URL** + + `/routes/:id` + * **Method** -* **URL Params** -* **Data Params** + + `DELETE` + * **Success Response** + + * **Code**: `200 OK`
+ **Content**: TODO + * **Error Response** + + * **Code**: `404 Not Found`
+ **Header**: `Content-Type: application/json`
+ **Content**: `{ "error": "Unknown route", "route_id": "{{ :id }}" }` + + * **Sample Call** +TODO + * **Notes** + ### Handlers #### Get the value for a handler key