diff options
author | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-13 14:25:20 +0530 |
---|---|---|
committer | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-13 14:25:20 +0530 |
commit | 9d707dac529b922f491da45b73121e5e2ca96773 (patch) | |
tree | f452678cefcfc0337b073a187d15f604fb8644ca | |
parent | 207331d85159abad4e2557338fe144e857088b93 (diff) | |
download | traccar-server-9d707dac529b922f491da45b73121e5e2ca96773.tar.gz traccar-server-9d707dac529b922f491da45b73121e5e2ca96773.tar.bz2 traccar-server-9d707dac529b922f491da45b73121e5e2ca96773.zip |
[swagger] Add security definitions
-rw-r--r-- | swagger.json | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/swagger.json b/swagger.json index 2c8830d87..ea3350a01 100644 --- a/swagger.json +++ b/swagger.json @@ -9,11 +9,16 @@ "schemes": [ "http" ], + "security": [ + { + "basicAuth": [] + } + ], "consumes": [ - "application/json" + "application/json" ], "produces": [ - "application/json" + "application/json" ], "paths": { "/commands": { @@ -1613,5 +1618,11 @@ "type": "string", "format": "date-time" } + }, + "securityDefinitions": { + "basicAuth": { + "type": "basic", + "description": "Basic HTTP authorization with _email_ and _password_" + } } } |