Add task identifier #115
|
@ -1,6 +1,6 @@
|
||||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
// This file was generated by swaggo/swag at
|
// This file was generated by swaggo/swag at
|
||||||
// 2019-12-07 21:20:14.32998445 +0100 CET m=+0.187124480
|
// 2019-12-07 22:51:46.967330871 +0100 CET m=+0.166223609
|
||||||
|
|
||||||
package swagger
|
package swagger
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ var doc = `{
|
||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns a team by its ID.",
|
"description": "Returns a list by its ID.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -415,13 +415,13 @@ var doc = `{
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"team"
|
"list"
|
||||||
],
|
],
|
||||||
"summary": "Gets one team",
|
"summary": "Gets one list",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Team ID",
|
"description": "List ID",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
@ -429,13 +429,13 @@ var doc = `{
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "The team",
|
"description": "The list",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/models.Team"
|
"$ref": "#/definitions/models.List"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "The user does not have access to the team",
|
"description": "The user does not have access to the list",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/code.vikunja.io.web.HTTPError"
|
"$ref": "#/definitions/code.vikunja.io.web.HTTPError"
|
||||||
}
|
}
|
||||||
|
@ -2649,7 +2649,7 @@ var doc = `{
|
||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns one task by its ID",
|
"description": "Returns all tasks on any list the user has access to.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -2659,27 +2659,53 @@ var doc = `{
|
||||||
"tags": [
|
"tags": [
|
||||||
"task"
|
"task"
|
||||||
],
|
],
|
||||||
"summary": "Get one task",
|
"summary": "Get tasks",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The task ID",
|
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
|
||||||
"name": "ID",
|
"name": "page",
|
||||||
"in": "path",
|
"in": "query"
|
||||||
"required": true
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The maximum number of items per page. Note this parameter is limited by the configured maximum of items per page.",
|
||||||
|
"name": "per_page",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Search tasks by task text.",
|
||||||
|
"name": "s",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "The sorting parameter. Possible values to sort by are priority, prioritydesc, priorityasc, duedate, duedatedesc, duedateasc.",
|
||||||
|
"name": "sort",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The start date parameter to filter by. Expects a unix timestamp. If no end date, but a start date is specified, the end date is set to the current time.",
|
||||||
|
"name": "startdate",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The end date parameter to filter by. Expects a unix timestamp. If no start date, but an end date is specified, the start date is set to the current time.",
|
||||||
|
"name": "enddate",
|
||||||
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "The task",
|
"description": "The tasks",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/models.Task"
|
"type": "array",
|
||||||
}
|
"items": {
|
||||||
},
|
"$ref": "#/definitions/models.Task"
|
||||||
"404": {
|
}
|
||||||
"description": "Task not found",
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/definitions/models.Message"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"500": {
|
"500": {
|
||||||
|
@ -2749,6 +2775,55 @@ var doc = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/tasks/{ID}": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"JWTKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Returns one task by its ID",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"task"
|
||||||
|
],
|
||||||
|
"summary": "Get one task",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The task ID",
|
||||||
|
"name": "ID",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "The task",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Task"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Task not found",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Message"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "Internal error",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Message"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/tasks/{id}": {
|
"/tasks/{id}": {
|
||||||
"post": {
|
"post": {
|
||||||
"security": [
|
"security": [
|
||||||
|
@ -4452,6 +4527,14 @@ var doc = `{
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -4871,6 +4954,14 @@ var doc = `{
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -4979,6 +5070,14 @@ var doc = `{
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
|
|
@ -389,7 +389,7 @@
|
||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns a team by its ID.",
|
"description": "Returns a list by its ID.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -397,13 +397,13 @@
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"team"
|
"list"
|
||||||
],
|
],
|
||||||
"summary": "Gets one team",
|
"summary": "Gets one list",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Team ID",
|
"description": "List ID",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
@ -411,13 +411,13 @@
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "The team",
|
"description": "The list",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/models.Team"
|
"$ref": "#/definitions/models.List"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "The user does not have access to the team",
|
"description": "The user does not have access to the list",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/code.vikunja.io/web.HTTPError"
|
"$ref": "#/definitions/code.vikunja.io/web.HTTPError"
|
||||||
}
|
}
|
||||||
|
@ -2631,7 +2631,7 @@
|
||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns one task by its ID",
|
"description": "Returns all tasks on any list the user has access to.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -2641,27 +2641,53 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"task"
|
"task"
|
||||||
],
|
],
|
||||||
"summary": "Get one task",
|
"summary": "Get tasks",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The task ID",
|
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
|
||||||
"name": "ID",
|
"name": "page",
|
||||||
"in": "path",
|
"in": "query"
|
||||||
"required": true
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The maximum number of items per page. Note this parameter is limited by the configured maximum of items per page.",
|
||||||
|
"name": "per_page",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Search tasks by task text.",
|
||||||
|
"name": "s",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "The sorting parameter. Possible values to sort by are priority, prioritydesc, priorityasc, duedate, duedatedesc, duedateasc.",
|
||||||
|
"name": "sort",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The start date parameter to filter by. Expects a unix timestamp. If no end date, but a start date is specified, the end date is set to the current time.",
|
||||||
|
"name": "startdate",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The end date parameter to filter by. Expects a unix timestamp. If no start date, but an end date is specified, the start date is set to the current time.",
|
||||||
|
"name": "enddate",
|
||||||
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "The task",
|
"description": "The tasks",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/models.Task"
|
"type": "array",
|
||||||
}
|
"items": {
|
||||||
},
|
"$ref": "#/definitions/models.Task"
|
||||||
"404": {
|
}
|
||||||
"description": "Task not found",
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/definitions/models.Message"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"500": {
|
"500": {
|
||||||
|
@ -2731,6 +2757,55 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/tasks/{ID}": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"JWTKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Returns one task by its ID",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"task"
|
||||||
|
],
|
||||||
|
"summary": "Get one task",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The task ID",
|
||||||
|
"name": "ID",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "The task",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Task"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Task not found",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Message"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "Internal error",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/models.Message"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/tasks/{id}": {
|
"/tasks/{id}": {
|
||||||
"post": {
|
"post": {
|
||||||
"security": [
|
"security": [
|
||||||
|
@ -4433,6 +4508,14 @@
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -4852,6 +4935,14 @@
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -4960,6 +5051,14 @@
|
||||||
"description": "The unique, numeric id of this task.",
|
"description": "The unique, numeric id of this task.",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "The task identifier, based on the list identifier and the task's index",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "The task index, calculated per list",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"description": "An array of labels which are associated with this task.",
|
"description": "An array of labels which are associated with this task.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
|
|
@ -84,6 +84,13 @@ definitions:
|
||||||
id:
|
id:
|
||||||
description: The unique, numeric id of this task.
|
description: The unique, numeric id of this task.
|
||||||
type: integer
|
type: integer
|
||||||
|
identifier:
|
||||||
|
description: The task identifier, based on the list identifier and the task's
|
||||||
|
index
|
||||||
|
type: string
|
||||||
|
index:
|
||||||
|
description: The task index, calculated per list
|
||||||
|
type: integer
|
||||||
labels:
|
labels:
|
||||||
description: An array of labels which are associated with this task.
|
description: An array of labels which are associated with this task.
|
||||||
items:
|
items:
|
||||||
|
@ -418,6 +425,13 @@ definitions:
|
||||||
id:
|
id:
|
||||||
description: The unique, numeric id of this task.
|
description: The unique, numeric id of this task.
|
||||||
type: integer
|
type: integer
|
||||||
|
identifier:
|
||||||
|
description: The task identifier, based on the list identifier and the
|
||||||
|
task's index
|
||||||
|
type: string
|
||||||
|
index:
|
||||||
|
description: The task index, calculated per list
|
||||||
|
type: integer
|
||||||
labels:
|
labels:
|
||||||
description: An array of labels which are associated with this task.
|
description: An array of labels which are associated with this task.
|
||||||
items:
|
items:
|
||||||
|
@ -505,6 +519,13 @@ definitions:
|
||||||
id:
|
id:
|
||||||
description: The unique, numeric id of this task.
|
description: The unique, numeric id of this task.
|
||||||
type: integer
|
type: integer
|
||||||
|
identifier:
|
||||||
|
description: The task identifier, based on the list identifier and the task's
|
||||||
|
index
|
||||||
|
type: string
|
||||||
|
index:
|
||||||
|
description: The task index, calculated per list
|
||||||
|
type: integer
|
||||||
labels:
|
labels:
|
||||||
description: An array of labels which are associated with this task.
|
description: An array of labels which are associated with this task.
|
||||||
items:
|
items:
|
||||||
|
@ -1138,9 +1159,9 @@ paths:
|
||||||
get:
|
get:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
description: Returns a team by its ID.
|
description: Returns a list by its ID.
|
||||||
parameters:
|
parameters:
|
||||||
- description: Team ID
|
- description: List ID
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: id
|
||||||
required: true
|
required: true
|
||||||
|
@ -1149,11 +1170,11 @@ paths:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The team
|
description: The list
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Team'
|
$ref: '#/definitions/models.List'
|
||||||
"403":
|
"403":
|
||||||
description: The user does not have access to the team
|
description: The user does not have access to the list
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
|
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
|
||||||
"500":
|
"500":
|
||||||
|
@ -1162,9 +1183,9 @@ paths:
|
||||||
$ref: '#/definitions/models.Message'
|
$ref: '#/definitions/models.Message'
|
||||||
security:
|
security:
|
||||||
- JWTKeyAuth: []
|
- JWTKeyAuth: []
|
||||||
summary: Gets one team
|
summary: Gets one list
|
||||||
tags:
|
tags:
|
||||||
- team
|
- list
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
|
@ -2592,6 +2613,37 @@ paths:
|
||||||
summary: Get an auth token for a share
|
summary: Get an auth token for a share
|
||||||
tags:
|
tags:
|
||||||
- sharing
|
- sharing
|
||||||
|
/tasks/{ID}:
|
||||||
|
get:
|
||||||
|
consumes:
|
||||||
|
- application/json
|
||||||
|
description: Returns one task by its ID
|
||||||
|
parameters:
|
||||||
|
- description: The task ID
|
||||||
|
in: path
|
||||||
|
name: ID
|
||||||
|
required: true
|
||||||
|
type: integer
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: The task
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/models.Task'
|
||||||
|
"404":
|
||||||
|
description: Task not found
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/models.Message'
|
||||||
|
"500":
|
||||||
|
description: Internal error
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/models.Message'
|
||||||
|
security:
|
||||||
|
- JWTKeyAuth: []
|
||||||
|
summary: Get one task
|
||||||
|
tags:
|
||||||
|
- task
|
||||||
/tasks/{id}:
|
/tasks/{id}:
|
||||||
delete:
|
delete:
|
||||||
description: Deletes a task from a list. This does not mean "mark it done".
|
description: Deletes a task from a list. This does not mean "mark it done".
|
||||||
|
@ -3246,31 +3298,55 @@ paths:
|
||||||
get:
|
get:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
description: Returns one task by its ID
|
description: Returns all tasks on any list the user has access to.
|
||||||
parameters:
|
parameters:
|
||||||
- description: The task ID
|
- description: The page number. Used for pagination. If not provided, the first
|
||||||
in: path
|
page of results is returned.
|
||||||
name: ID
|
in: query
|
||||||
required: true
|
name: page
|
||||||
|
type: integer
|
||||||
|
- description: The maximum number of items per page. Note this parameter is
|
||||||
|
limited by the configured maximum of items per page.
|
||||||
|
in: query
|
||||||
|
name: per_page
|
||||||
|
type: integer
|
||||||
|
- description: Search tasks by task text.
|
||||||
|
in: query
|
||||||
|
name: s
|
||||||
|
type: string
|
||||||
|
- description: The sorting parameter. Possible values to sort by are priority,
|
||||||
|
prioritydesc, priorityasc, duedate, duedatedesc, duedateasc.
|
||||||
|
in: query
|
||||||
|
name: sort
|
||||||
|
type: string
|
||||||
|
- description: The start date parameter to filter by. Expects a unix timestamp.
|
||||||
|
If no end date, but a start date is specified, the end date is set to the
|
||||||
|
current time.
|
||||||
|
in: query
|
||||||
|
name: startdate
|
||||||
|
type: integer
|
||||||
|
- description: The end date parameter to filter by. Expects a unix timestamp.
|
||||||
|
If no start date, but an end date is specified, the start date is set to
|
||||||
|
the current time.
|
||||||
|
in: query
|
||||||
|
name: enddate
|
||||||
type: integer
|
type: integer
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The task
|
description: The tasks
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Task'
|
items:
|
||||||
"404":
|
$ref: '#/definitions/models.Task'
|
||||||
description: Task not found
|
type: array
|
||||||
schema:
|
|
||||||
$ref: '#/definitions/models.Message'
|
|
||||||
"500":
|
"500":
|
||||||
description: Internal error
|
description: Internal error
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/models.Message'
|
$ref: '#/definitions/models.Message'
|
||||||
security:
|
security:
|
||||||
- JWTKeyAuth: []
|
- JWTKeyAuth: []
|
||||||
summary: Get one task
|
summary: Get tasks
|
||||||
tags:
|
tags:
|
||||||
- task
|
- task
|
||||||
/tasks/bulk:
|
/tasks/bulk:
|
||||||
|
|
Loading…
Reference in New Issue