From cd4fca19fd1e25ae7d8c142c2e306579051ba67d Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 3 Oct 2018 19:30:43 +0200 Subject: [PATCH] updated swagger spec --- public/swagger/swagger.v1.json | 64 ++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/public/swagger/swagger.v1.json b/public/swagger/swagger.v1.json index 2f835a4a5..4826d4342 100644 --- a/public/swagger/swagger.v1.json +++ b/public/swagger/swagger.v1.json @@ -1543,6 +1543,70 @@ } } }, + "/user": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Shows the current user", + "operationId": "showUser", + "responses": { + "200": { + "$ref": "#/responses/User" + }, + "400": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + } + }, + "/user/password": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Shows the current user", + "operationId": "updatePassword", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/Password" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/Message" + }, + "400": { + "$ref": "#/responses/Message" + }, + "404": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + } + }, "/users": { "get": { "consumes": [