Fixed swagger docs for bulk label tasks
This commit is contained in:
@ -157,8 +157,7 @@ definitions:
|
||||
models.LabelTaskBulk:
|
||||
properties:
|
||||
labels:
|
||||
description: All labels you want to update at once. Works exactly like you
|
||||
would update labels while updateing a list.
|
||||
description: All labels you want to update at once.
|
||||
items:
|
||||
$ref: '#/definitions/models.Label'
|
||||
type: array
|
||||
@ -649,14 +648,15 @@ paths:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Returns an array with all assignees for this task.
|
||||
description: Returns all labels which are either created by the user or associated
|
||||
with a task the user has at least read-access to.
|
||||
parameters:
|
||||
- description: The page number. Used for pagination. If not provided, the first
|
||||
page of results is returned.
|
||||
in: query
|
||||
name: p
|
||||
type: integer
|
||||
- description: Search assignees by their username.
|
||||
- description: Search labels by label text.
|
||||
in: query
|
||||
name: s
|
||||
type: string
|
||||
@ -664,10 +664,10 @@ paths:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: The assignees
|
||||
description: The labels
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/models.User'
|
||||
$ref: '#/definitions/models.Label'
|
||||
type: array
|
||||
"500":
|
||||
description: Internal error
|
||||
@ -676,9 +676,9 @@ paths:
|
||||
type: object
|
||||
security:
|
||||
- JWTKeyAuth: []
|
||||
summary: Get all assignees for a task
|
||||
summary: Get all labels a user has access to
|
||||
tags:
|
||||
- assignees
|
||||
- labels
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@ -2490,7 +2490,10 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Adds multiple new labels to a task.
|
||||
description: Updates all labels on a task. Every label which is not passed but
|
||||
exists on the task will be deleted. Every label which does not exist on the
|
||||
task will be added. All labels which are passed and already exist on the task
|
||||
won't be touched.
|
||||
parameters:
|
||||
- description: The array of labels
|
||||
in: body
|
||||
@ -2524,7 +2527,7 @@ paths:
|
||||
type: object
|
||||
security:
|
||||
- JWTKeyAuth: []
|
||||
summary: Add multiple new labels to a task
|
||||
summary: Update all labels on a task.
|
||||
tags:
|
||||
- labels
|
||||
/tasks/all:
|
||||
|
Reference in New Issue
Block a user