chore: generate swagger docs
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-12-12 18:33:03 +01:00
parent a911b53e9e
commit 77a3216b17
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 14 additions and 27 deletions

View File

@ -7074,7 +7074,7 @@ var doc = `{
}
}
},
"post": {
"put": {
"security": [
{
"JWTKeyAuth": []
@ -7095,7 +7095,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.TokenResponse"
"$ref": "#/definitions/user.Token"
}
},
"400": {
@ -9025,6 +9025,9 @@ var doc = `{
},
"id": {
"type": "integer"
},
"token": {
"type": "string"
}
}
},
@ -9069,14 +9072,6 @@ var doc = `{
}
}
},
"v1.TokenResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"v1.UserAvatarProvider": {
"type": "object",
"properties": {

View File

@ -7058,7 +7058,7 @@
}
}
},
"post": {
"put": {
"security": [
{
"JWTKeyAuth": []
@ -7079,7 +7079,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.TokenResponse"
"$ref": "#/definitions/user.Token"
}
},
"400": {
@ -9009,6 +9009,9 @@
},
"id": {
"type": "integer"
},
"token": {
"type": "string"
}
}
},
@ -9053,14 +9056,6 @@
}
}
},
"v1.TokenResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"v1.UserAvatarProvider": {
"type": "object",
"properties": {

View File

@ -1205,6 +1205,8 @@ definitions:
type: string
id:
type: integer
token:
type: string
type: object
user.User:
properties:
@ -1238,11 +1240,6 @@ definitions:
password:
type: string
type: object
v1.TokenResponse:
properties:
token:
type: string
type: object
v1.UserAvatarProvider:
properties:
avatar_provider:
@ -6105,7 +6102,7 @@ paths:
summary: Returns the caldav tokens for the current user
tags:
- user
post:
put:
consumes:
- application/json
description: Generates a caldav token which can be used for the caldav api.
@ -6116,7 +6113,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/v1.TokenResponse'
$ref: '#/definitions/user.Token'
"400":
description: Something's invalid.
schema: