updated swagger spec

This commit is contained in:
kolaente 2018-10-03 19:30:43 +02:00
parent 85c9fba808
commit cd4fca19fd
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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": { "/users": {
"get": { "get": {
"consumes": [ "consumes": [