1
0

Fixed swaggerdocs of description fields

This commit is contained in:
kolaente
2019-07-21 23:57:19 +02:00
parent 8d76280811
commit 208eb4e68c
8 changed files with 61 additions and 92 deletions

View File

@ -45,7 +45,7 @@
"JWTKeyAuth": []
}
],
"description": "Returns all labels which are either created by the user or associated with a task the user has at least read-access to.",
"description": "Returns an array with all assignees for this task.",
"consumes": [
"application/json"
],
@ -53,9 +53,9 @@
"application/json"
],
"tags": [
"labels"
"assignees"
],
"summary": "Get all labels a user has access to",
"summary": "Get all assignees for a task",
"parameters": [
{
"type": "integer",
@ -65,18 +65,18 @@
},
{
"type": "string",
"description": "Search labels by label text.",
"description": "Search assignees by their username.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
"description": "The labels",
"description": "The assignees",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.Label"
"$ref": "#/definitions/models.User"
}
}
},
@ -399,7 +399,7 @@
"JWTKeyAuth": []
}
],
"description": "Returns a team by its ID.",
"description": "Returns a list by its ID.",
"consumes": [
"application/json"
],
@ -407,13 +407,13 @@
"application/json"
],
"tags": [
"team"
"list"
],
"summary": "Gets one team",
"summary": "Gets one list",
"parameters": [
{
"type": "integer",
"description": "Team ID",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
@ -421,14 +421,14 @@
],
"responses": {
"200": {
"description": "The team",
"description": "The list",
"schema": {
"type": "object",
"$ref": "#/definitions/models.Team"
"$ref": "#/definitions/models.List"
}
},
"403": {
"description": "The user does not have access to the team",
"description": "The user does not have access to the list",
"schema": {
"type": "object",
"$ref": "#/definitions/code.vikunja.io/web.HTTPError"
@ -3724,8 +3724,7 @@
},
"description": {
"description": "The task description.",
"type": "string",
"maxLength": 250
"type": "string"
},
"done": {
"description": "Whether a task is done or not.",
@ -3835,8 +3834,7 @@
},
"description": {
"description": "The label description.",
"type": "string",
"maxLength": 250
"type": "string"
},
"hex_color": {
"description": "The color this label has",
@ -3893,8 +3891,7 @@
},
"description": {
"description": "The description of the list.",
"type": "string",
"maxLength": 1000
"type": "string"
},
"id": {
"description": "The unique, numeric id of this list.",
@ -3945,8 +3942,7 @@
},
"description": {
"description": "The task description.",
"type": "string",
"maxLength": 250
"type": "string"
},
"done": {
"description": "Whether a task is done or not.",
@ -4082,8 +4078,7 @@
},
"description": {
"description": "The description of the namespace",
"type": "string",
"maxLength": 250
"type": "string"
},
"id": {
"description": "The unique, numeric id of this namespace.",
@ -4142,8 +4137,7 @@
},
"description": {
"description": "The description of the namespace",
"type": "string",
"maxLength": 250
"type": "string"
},
"id": {
"description": "The unique, numeric id of this namespace.",
@ -4208,9 +4202,7 @@
},
"description": {
"description": "The team's description.",
"type": "string",
"maxLength": 250,
"minLength": 0
"type": "string"
},
"id": {
"description": "The unique, numeric id of this team.",
@ -4360,9 +4352,7 @@
},
"description": {
"description": "The team's description.",
"type": "string",
"maxLength": 250,
"minLength": 0
"type": "string"
},
"id": {
"description": "The unique, numeric id of this team.",