1
0

Fixed generation of swagger docs (#29)

This commit is contained in:
konrad
2018-12-01 01:59:17 +00:00
committed by Gitea
parent 1b24cdf164
commit 007d8ec375
47 changed files with 590 additions and 411 deletions

View File

@ -16,13 +16,6 @@ definitions:
token:
type: string
type: object
models.HTTPError:
properties:
code:
type: integer
message:
type: string
type: object
models.List:
properties:
created:
@ -339,7 +332,7 @@ paths:
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -371,12 +364,12 @@ paths:
"400":
description: Invalid list object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -409,7 +402,7 @@ paths:
"403":
description: The user does not have access to the team
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -449,12 +442,12 @@ paths:
"400":
description: Invalid list object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -494,12 +487,12 @@ paths:
"400":
description: Invalid task object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -543,7 +536,7 @@ paths:
"403":
description: No right to see the list.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -583,17 +576,17 @@ paths:
"400":
description: Invalid team list object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: The team does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -637,7 +630,7 @@ paths:
"403":
description: No right to see the list.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -677,17 +670,17 @@ paths:
"400":
description: Invalid user list object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: The user does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -725,12 +718,12 @@ paths:
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: Team or list does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -776,12 +769,12 @@ paths:
"403":
description: The user does not have admin-access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: Team or list does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -819,12 +812,12 @@ paths:
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: user or list does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -870,12 +863,12 @@ paths:
"403":
description: The user does not have admin-access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: User or list does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -950,12 +943,12 @@ paths:
"400":
description: Invalid namespace object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1024,12 +1017,12 @@ paths:
"400":
description: Invalid namespace object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1061,12 +1054,12 @@ paths:
"400":
description: Invalid namespace object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1099,7 +1092,7 @@ paths:
"403":
description: The user does not have access to that namespace.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1184,7 +1177,7 @@ paths:
"403":
description: No right to see the namespace.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1224,17 +1217,17 @@ paths:
"400":
description: Invalid team namespace object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The team does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: The team does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1279,7 +1272,7 @@ paths:
"403":
description: No right to see the namespace.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1319,17 +1312,17 @@ paths:
"400":
description: Invalid user namespace object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: The user does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1371,12 +1364,12 @@ paths:
"400":
description: Invalid list object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1414,12 +1407,12 @@ paths:
"403":
description: The team does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: team or namespace does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1465,12 +1458,12 @@ paths:
"403":
description: The team does not have admin-access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: Team or namespace does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1508,12 +1501,12 @@ paths:
"403":
description: The user does not have access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: user or namespace does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1559,12 +1552,12 @@ paths:
"403":
description: The user does not have admin-access to the namespace
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: User or namespace does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1601,7 +1594,7 @@ paths:
description: No or invalid user register object provided / User already
exists.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1665,12 +1658,12 @@ paths:
"400":
description: Invalid task ID provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the list
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1710,12 +1703,12 @@ paths:
"400":
description: Invalid task object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the task (aka its list)
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1806,7 +1799,7 @@ paths:
"400":
description: Invalid team object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1839,7 +1832,7 @@ paths:
"400":
description: Invalid team object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1879,7 +1872,7 @@ paths:
"400":
description: Invalid team object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1920,12 +1913,12 @@ paths:
"400":
description: Invalid member object provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"403":
description: The user does not have access to the team
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -1986,7 +1979,7 @@ paths:
"404":
description: User does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal server error.
@ -2022,7 +2015,7 @@ paths:
"412":
description: Bad token provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -2056,12 +2049,12 @@ paths:
"400":
description: Something's invalid.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"404":
description: User does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal server error.
@ -2097,7 +2090,7 @@ paths:
"400":
description: Bad token provided.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -2132,7 +2125,7 @@ paths:
"404":
description: The user does not exist.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal error
@ -2165,7 +2158,7 @@ paths:
"400":
description: Something's invalid.
schema:
$ref: '#/definitions/models.HTTPError'
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
type: object
"500":
description: Internal server error.