From 0e47bd14846de72381179734daf402267abb694f Mon Sep 17 00:00:00 2001 From: Sun Howwrongbum Date: Tue, 6 Dec 2016 02:17:12 +0530 Subject: [swagger] Describe /commands - remove unnecessary entries --- swagger.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/swagger.json b/swagger.json index 705d887ac..0d887d97c 100644 --- a/swagger.json +++ b/swagger.json @@ -17,13 +17,8 @@ ], "paths": { "/commands": { + "summary": "Dispatch commands to device", "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], "parameters": [ { "name": "body", @@ -37,10 +32,12 @@ "responses": { "200": { "description": "OK", - "headers": {}, "schema": { "$ref": "#/definitions/Command" } + }, + "400": { + "description": "Could happen when dispatching to the device is offline, the user doesn't have permission or an incorrect command _type_." } } } -- cgit v1.2.3