vikunja-api/pkg/swagger/swagger.json

8399 lines
309 KiB
JSON
Raw Normal View History

{
"swagger": "2.0",
"info": {
"description": "# Pagination\nEvery endpoint capable of pagination will return two headers:\n* `x-pagination-total-pages`: The total number of available pages for this request\n* `x-pagination-result-count`: The number of items returned for this request.\n# Rights\nAll endpoints which return a single item (list, task, namespace, etc.) - no array - will also return a `x-max-right` header with the max right the user has on this item as an int where `0` is `Read Only`, `1` is `Read \u0026 Write` and `2` is `Admin`.\nThis can be used to show or hide ui elements based on the rights the user has.\n# Authorization\n**JWT-Auth:** Main authorization method, used for most of the requests. Needs `Authorization: Bearer \u003cjwt-token\u003e`-header to authenticate successfully.\n\n**BasicAuth:** Only used when requesting tasks via caldav.\n\u003c!-- ReDoc-Inject: \u003csecurity-definitions\u003e --\u003e",
"title": "Vikunja API",
2019-01-03 23:22:06 +01:00
"contact": {
"name": "General Vikunja contact",
"url": "http://vikunja.io/en/contact/",
"email": "hello@vikunja.io"
},
"license": {
2019-01-03 23:22:06 +01:00
"name": "GPLv3",
"url": "http://code.vikunja.io/api/src/branch/master/LICENSE"
2019-10-16 22:52:29 +02:00
}
},
"basePath": "/api/v1",
"paths": {
"/auth/openid/{provider}/callback": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "After a redirect from the OpenID Connect provider to the frontend has been made with the authentication `code`, this endpoint can be used to obtain a jwt token for that user and thus log them in.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Authenticate a user with OpenID Connect",
"parameters": [
{
"description": "The openid callback",
"name": "callback",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openid.Callback"
}
},
{
"type": "integer",
"description": "The OpenID Connect provider key as returned by the /info endpoint",
"name": "provider",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/auth.Token"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/backgrounds/unsplash/image/{image}": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Get an unsplash image. **Returns json on error.**",
"produces": [
"application/octet-stream"
],
"tags": [
"list"
],
"summary": "Get an unsplash image",
"parameters": [
{
"type": "integer",
"description": "Unsplash Image ID",
"name": "thumb",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The image",
"schema": {
"type": ""
}
},
"404": {
"description": "The image does not exist.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/backgrounds/unsplash/image/{image}/thumb": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Get an unsplash thumbnail image. The thumbnail is cropped to a max width of 200px. **Returns json on error.**",
"produces": [
"application/octet-stream"
],
"tags": [
"list"
],
"summary": "Get an unsplash thumbnail image",
"parameters": [
{
"type": "integer",
"description": "Unsplash Image ID",
"name": "thumb",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The thumbnail",
"schema": {
"type": ""
}
},
"404": {
"description": "The image does not exist.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/backgrounds/unsplash/search": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Search for a list background from unsplash",
"produces": [
"application/json"
],
"tags": [
"list"
],
"summary": "Search for a background from unsplash",
"parameters": [
{
"type": "string",
"description": "Search backgrounds from unsplash with this search term.",
"name": "s",
"in": "query"
},
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "p",
"in": "query"
}
],
"responses": {
"200": {
"description": "An array with photos",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/background.Image"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/filters": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Creates a new saved filter",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"filter"
],
"summary": "Creates a new saved filter",
"responses": {
"200": {
"description": "The Saved Filter",
"schema": {
"$ref": "#/definitions/models.SavedFilter"
}
},
"403": {
"description": "The user does not have access to that saved filter.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/filters/{id}": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns a saved filter by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"filter"
],
"summary": "Gets one saved filter",
"parameters": [
{
"type": "integer",
"description": "Filter ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The Saved Filter",
"schema": {
"$ref": "#/definitions/models.SavedFilter"
}
},
"403": {
"description": "The user does not have access to that saved filter.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Updates a saved filter by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"filter"
],
"summary": "Updates a saved filter",
"parameters": [
{
"type": "integer",
"description": "Filter ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The Saved Filter",
"schema": {
"$ref": "#/definitions/models.SavedFilter"
}
},
"403": {
"description": "The user does not have access to that saved filter.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The saved filter does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Removes a saved filter by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"filter"
],
"summary": "Removes a saved filter",
"parameters": [
{
"type": "integer",
"description": "Filter ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The Saved Filter",
"schema": {
"$ref": "#/definitions/models.SavedFilter"
}
},
"403": {
"description": "The user does not have access to that saved filter.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The saved filter does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2019-07-16 00:54:38 +02:00
"/info": {
"get": {
"description": "Returns the version, frontendurl, motd and various settings of Vikunja",
2019-07-16 00:54:38 +02:00
"produces": [
"application/json"
],
"tags": [
"service"
],
"summary": "Info",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.vikunjaInfos"
}
}
}
}
},
2018-12-31 02:18:41 +01:00
"/labels": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
"description": "Returns all labels which are either created by the user or associated with a task the user has at least read-access to.",
2018-12-31 02:18:41 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"labels"
2018-12-31 02:18:41 +01:00
],
"summary": "Get all labels a user has access to",
2018-12-31 02:18:41 +01:00
"parameters": [
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
2019-10-23 23:11:40 +02:00
"name": "page",
"in": "query"
},
{
"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",
2018-12-31 02:18:41 +01:00
"in": "query"
},
{
"type": "string",
"description": "Search labels by label text.",
2018-12-31 02:18:41 +01:00
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
"description": "The labels",
2018-12-31 02:18:41 +01:00
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.Label"
2018-12-31 02:18:41 +01:00
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
"description": "Creates a new label.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"labels"
],
"summary": "Create a label",
"parameters": [
{
"description": "The label object",
"name": "label",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Label"
}
}
],
"responses": {
"200": {
"description": "The created label object.",
"schema": {
"$ref": "#/definitions/models.Label"
}
},
"400": {
"description": "Invalid label object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/labels/{id}": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
"description": "Returns one label by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"labels"
],
"summary": "Gets one label",
"parameters": [
{
"type": "integer",
"description": "Label ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The label",
"schema": {
"$ref": "#/definitions/models.Label"
}
},
"403": {
"description": "The user does not have access to the label",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"404": {
"description": "Label not found",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
"description": "Update an existing label. The user needs to be the creator of the label to be able to do this.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"labels"
],
"summary": "Update a label",
"parameters": [
{
"type": "integer",
"description": "Label ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The label object",
"name": "label",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Label"
}
}
],
"responses": {
"200": {
"description": "The created label object.",
"schema": {
"$ref": "#/definitions/models.Label"
}
},
"400": {
"description": "Invalid label object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"403": {
"description": "Not allowed to update the label.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"404": {
"description": "Label not found.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
"description": "Delete an existing label. The user needs to be the creator of the label to be able to do this.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"labels"
],
"summary": "Delete a label",
"parameters": [
{
"type": "integer",
"description": "Label ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The label was successfully deleted.",
"schema": {
"$ref": "#/definitions/models.Label"
}
},
"403": {
"description": "Not allowed to delete the label.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"404": {
"description": "Label not found.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/lists": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
"description": "Returns all lists a user has access to.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"list"
],
"summary": "Get all lists a user has access to",
"parameters": [
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
2019-10-23 23:11:40 +02:00
"name": "page",
"in": "query"
},
{
"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 lists by title.",
"name": "s",
"in": "query"
2020-06-28 16:25:46 +02:00
},
{
"type": "boolean",
"description": "If true, also returns all archived lists.",
"name": "is_archived",
"in": "query"
}
],
"responses": {
"200": {
"description": "The lists",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.List"
}
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/lists/{id}": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2019-12-07 20:52:04 +01:00
"description": "Returns a list by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2019-12-07 20:52:04 +01:00
"list"
],
2019-12-07 20:52:04 +01:00
"summary": "Gets one list",
"parameters": [
{
"type": "integer",
2019-12-07 20:52:04 +01:00
"description": "List ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2019-12-07 20:52:04 +01:00
"description": "The list",
"schema": {
2019-12-07 20:52:04 +01:00
"$ref": "#/definitions/models.List"
}
},
"403": {
2019-12-07 20:52:04 +01:00
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
"description": "Inserts a task into a list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
"summary": "Create a task",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The task object",
"name": "task",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Task"
}
}
],
"responses": {
"200": {
"description": "The created task object.",
"schema": {
"$ref": "#/definitions/models.Task"
}
},
"400": {
"description": "Invalid task object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
"description": "Updates a list. This does not include adding a task (see below).",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"list"
],
"summary": "Updates a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The list with updated values you want to update.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.List"
}
}
],
"responses": {
"200": {
"description": "The updated list.",
"schema": {
"$ref": "#/definitions/models.List"
}
},
"400": {
"description": "Invalid list object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
"description": "Delets a list",
"produces": [
"application/json"
],
"tags": [
"list"
],
"summary": "Deletes a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The list was successfully deleted.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Invalid list object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/background": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Get the list background of a specific list. **Returns json on error.**",
"produces": [
2020-06-28 16:25:46 +02:00
"application/octet-stream"
],
"tags": [
"list"
],
2020-06-28 16:25:46 +02:00
"summary": "Get the list background",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The list background file.",
"schema": {
2020-06-28 16:25:46 +02:00
"type": ""
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "No access to this list.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The list does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/backgrounds/unsplash": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Sets a photo from unsplash as list background.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"list"
],
2020-06-28 16:25:46 +02:00
"summary": "Set an unsplash photo as list background",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The image you want to set as background",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/background.Image"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The background has been successfully set.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.List"
}
},
"400": {
"description": "Invalid image object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/lists/{id}/backgrounds/upload": {
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Upload a list background.",
"consumes": [
2020-06-28 16:25:46 +02:00
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"list"
],
2020-06-28 16:25:46 +02:00
"summary": "Upload a list background",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"type": "string",
"description": "The file as single file.",
"name": "background",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The background was set successfully.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "File is no image.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "File too large.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The list does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/buckets": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns all kanban buckets with belong to a list including their tasks.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Get all kanban buckets of a list",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "List Id",
"name": "id",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The name of the field to filter by. Allowed values are all task properties. Task properties which are their own object require passing in the id of that entity. Accepts an array for multiple filters which will be chanied together, all supplied filter must match.",
"name": "filter_by",
"in": "query"
},
{
"type": "string",
"description": "The value to filter for.",
"name": "filter_value",
"in": "query"
},
{
"type": "string",
"description": "The comparator to use for a filter. Available values are `equals`, `greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in` expects comma-separated values in `filter_value`. Defaults to `equals`",
"name": "filter_comparator",
"in": "query"
},
{
"type": "string",
"description": "The concatinator to use for filters. Available values are `and` or `or`. Defaults to `or`.",
"name": "filter_concat",
"in": "query"
},
{
"type": "string",
"description": "If set to true the result will include filtered fields whose value is set to `null`. Available values are `true` or `false`. Defaults to `false`.",
"name": "filter_include_nulls",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The buckets with their tasks",
"schema": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Bucket"
}
}
},
2020-06-28 16:25:46 +02:00
"500": {
"description": "Internal server error",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Creates a new kanban bucket on a list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Create a new bucket",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "List Id",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The bucket object",
"name": "bucket",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Bucket"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created bucket object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Bucket"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid bucket object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The list does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
2019-11-29 23:59:20 +01:00
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/listusers": {
2019-11-29 23:59:20 +01:00
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Lists all users (without emailadresses). Also possible to search for a specific user.",
2019-11-29 23:59:20 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"list"
2019-11-29 23:59:20 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Get users",
2019-11-29 23:59:20 +01:00
"parameters": [
{
"type": "string",
2020-06-28 16:25:46 +02:00
"description": "Search for a user by its name.",
2019-11-29 23:59:20 +01:00
"name": "s",
"in": "query"
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "List ID",
"name": "id",
"in": "path",
"required": true
2019-11-29 23:59:20 +01:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "All (found) users.",
2019-11-29 23:59:20 +01:00
"schema": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2019-11-29 23:59:20 +01:00
}
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"401": {
"description": "The user does not have the right to see the list.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
2019-11-29 23:59:20 +01:00
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
2019-11-29 23:59:20 +01:00
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/teams": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns a list with all teams which have access on a given list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Get teams on a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
2020-06-28 16:25:46 +02:00
"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 teams by its name.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The teams with their right.",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.TeamWithRight"
}
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "No right to see the list.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Gives a team access to a list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Add a team to a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The team you want to add to the list.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TeamList"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created team\u003c-\u003elist relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamList"
}
},
"400": {
"description": "Invalid team list object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The team does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{id}/users": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns a list with all users which have access on a given list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Get users on a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
2020-06-28 16:25:46 +02:00
"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 users by its name.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The users with the right they have.",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.UserWithRight"
}
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "No right to see the list.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Gives a user access to a list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Add a user to a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The user you want to add to the list.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.ListUser"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created user\u003c-\u003elist relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.ListUser"
}
},
"400": {
"description": "Invalid user list object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The user does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{listID}/buckets/{bucketID}": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Updates an existing kanban bucket.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Update an existing bucket",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "List Id",
"name": "listID",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Bucket Id",
"name": "bucketID",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The bucket object",
"name": "bucket",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Bucket"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created bucket object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Bucket"
}
},
"400": {
"description": "Invalid bucket object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The bucket does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Deletes an existing kanban bucket and dissociates all of its task. It does not delete any tasks. You cannot delete the last bucket on a list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Deletes an existing bucket",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "List Id",
"name": "listID",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Bucket Id",
"name": "bucketID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "Successfully deleted.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The bucket does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"500": {
"description": "Internal error",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
2020-06-28 16:25:46 +02:00
}
}
}
},
"/lists/{listID}/duplicate": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Copies the list, tasks, files, kanban data, assignees, comments, attachments, lables, relations, backgrounds, user/team rights and link shares from one list to a new namespace. The user needs read access in the list and write access in the namespace of the new list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"list"
],
"summary": "Duplicate an existing list",
"parameters": [
{
"type": "integer",
"description": "The list ID to duplicate",
"name": "listID",
"in": "path",
"required": true
},
{
"description": "The target namespace which should hold the copied list.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.ListDuplicate"
}
}
],
"responses": {
"200": {
"description": "The created list.",
"schema": {
"$ref": "#/definitions/models.ListDuplicate"
}
},
"400": {
"description": "Invalid list duplicate object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list or namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{listID}/tasks": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns all tasks for the current list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
"summary": "Get tasks in a list",
"parameters": [
{
"type": "integer",
"description": "The list ID.",
"name": "listID",
"in": "path",
"required": true
},
2020-06-28 16:25:46 +02:00
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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. You can pass this multiple times to get the tasks ordered by multiple different parametes, along with `order_by`. Possible values to sort by are `id`, `title`, `description`, `done`, `done_at`, `due_date`, `created_by_id`, `list_id`, `repeat_after`, `priority`, `start_date`, `end_date`, `hex_color`, `percent_done`, `uid`, `created`, `updated`. Default is `id`.",
"name": "sort_by",
"in": "query"
},
{
"type": "string",
"description": "The ordering parameter. Possible values to order by are `asc` or `desc`. Default is `asc`.",
"name": "order_by",
"in": "query"
},
{
"type": "string",
"description": "The name of the field to filter by. Allowed values are all task properties. Task properties which are their own object require passing in the id of that entity. Accepts an array for multiple filters which will be chanied together, all supplied filter must match.",
2020-06-28 16:25:46 +02:00
"name": "filter_by",
"in": "query"
},
{
"type": "string",
"description": "The value to filter for.",
"name": "filter_value",
"in": "query"
},
{
"type": "string",
"description": "The comparator to use for a filter. Available values are `equals`, `greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in` expects comma-separated values in `filter_value`. Defaults to `equals`",
2020-06-28 16:25:46 +02:00
"name": "filter_comparator",
"in": "query"
},
{
"type": "string",
"description": "The concatinator to use for filters. Available values are `and` or `or`. Defaults to `or`.",
"name": "filter_concat",
"in": "query"
},
{
"type": "string",
"description": "If set to true the result will include filtered fields whose value is set to `null`. Available values are `true` or `false`. Defaults to `false`.",
"name": "filter_include_nulls",
"in": "query"
}
],
"responses": {
"200": {
"description": "The tasks",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.Task"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{listID}/teams/{teamID}": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Update a team \u003c-\u003e list relation. Mostly used to update the right that team has.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a team \u003c-\u003e list relation",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "listID",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "teamID",
"in": "path",
"required": true
2020-06-28 16:25:46 +02:00
},
{
"description": "The team you want to update.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TeamList"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated team \u003c-\u003e list relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamList"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have admin-access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "Team or list does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Delets a team from a list. The team won't have access to the list anymore.",
"produces": [
"application/json"
],
"tags": [
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete a team from a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
2020-06-28 16:25:46 +02:00
"name": "listID",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "teamID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The team was successfully deleted.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "Team or list does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/lists/{listID}/users/{userID}": {
"post": {
2020-06-28 16:25:46 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Update a user \u003c-\u003e list relation. Mostly used to update the right that user has.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a user \u003c-\u003e list relation",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "List ID",
"name": "listID",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "User ID",
"name": "userID",
"in": "path",
"required": true
},
{
"description": "The user you want to update.",
"name": "list",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.ListUser"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated user \u003c-\u003e list relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.ListUser"
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "The user does not have admin-access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "User or list does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Delets a user from a list. The user won't have access to the list anymore.",
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Delete a user from a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "listID",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "User ID",
"name": "userID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The user was successfully removed from the list.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "user or list does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/lists/{list}/shares": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns all link shares which exist for a given list",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Get all link shares for a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "list",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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 shares by hash.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
"description": "The share links",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.LinkSharing"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Share a list via link. The user needs to have write-access to the list to be able do this.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Share a list via link",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "list",
"in": "path",
"required": true
},
{
"description": "The new link share object",
"name": "label",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LinkSharing"
}
}
],
"responses": {
"200": {
"description": "The created link share object.",
"schema": {
"$ref": "#/definitions/models.LinkSharing"
}
},
"400": {
"description": "Invalid link share object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "Not allowed to add the list share.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The list does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/lists/{list}/shares/{share}": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns one link share by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Get one link shares for a list",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "list",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Share ID",
"name": "share",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The share links",
"schema": {
"$ref": "#/definitions/models.LinkSharing"
}
},
"403": {
"description": "No access to the list",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "Share Link not found.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Remove a link share. The user needs to have write-access to the list to be able do this.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Remove a link share",
"parameters": [
{
"type": "integer",
"description": "List ID",
"name": "list",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Share Link ID",
"name": "share",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The link was successfully removed.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "Not allowed to remove the link.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "Share Link not found.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/login": {
"post": {
"description": "Logs a user in. Returns a JWT-Token to authenticate further requests.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Login",
"parameters": [
{
"description": "The login credentials",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/user.Login"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/auth.Token"
2020-06-28 16:25:46 +02:00
}
},
"400": {
"description": "Invalid user password model.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "Invalid username or password.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"412": {
"description": "Invalid totp passcode.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/microsoft-todo/auth": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from Microsoft Todo to Vikunja.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get the auth url from Microsoft Todo",
"responses": {
"200": {
"description": "The auth url.",
"schema": {
"$ref": "#/definitions/handler.AuthURL"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/microsoft-todo/migrate": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Migrates all tasklinsts, tasks, notes and reminders from Microsoft Todo to Vikunja.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Migrate all lists, tasks etc. from Microsoft Todo",
"parameters": [
{
"description": "The auth token previously obtained from the auth url. See the docs for /migration/microsoft-todo/auth.",
"name": "migrationCode",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/microsofttodo.Migration"
}
}
],
"responses": {
"200": {
"description": "A message telling you everything was migrated successfully.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/microsoft-todo/status": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get migration status",
"responses": {
"200": {
"description": "The migration status",
"schema": {
"$ref": "#/definitions/migration.Status"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/migration/todoist/auth": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from todoist to Vikunja.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get the auth url from todoist",
"responses": {
"200": {
"description": "The auth url.",
"schema": {
"$ref": "#/definitions/handler.AuthURL"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/todoist/migrate": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Migrates all projects, tasks, notes, reminders, subtasks and files from todoist to vikunja.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Migrate all lists, tasks etc. from todoist",
"parameters": [
{
"description": "The auth code previously obtained from the auth url. See the docs for /migration/todoist/auth.",
"name": "migrationCode",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/todoist.Migration"
}
}
],
"responses": {
"200": {
"description": "A message telling you everything was migrated successfully.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/todoist/status": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get migration status",
"responses": {
"200": {
"description": "The migration status",
"schema": {
"$ref": "#/definitions/migration.Status"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/trello/auth": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from trello to Vikunja.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get the auth url from trello",
"responses": {
"200": {
"description": "The auth url.",
"schema": {
"$ref": "#/definitions/handler.AuthURL"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/trello/migrate": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Migrates all projects, tasks, notes, reminders, subtasks and files from trello to vikunja.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Migrate all lists, tasks etc. from trello",
"parameters": [
{
"description": "The auth token previously obtained from the auth url. See the docs for /migration/trello/auth.",
"name": "migrationCode",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/trello.Migration"
}
}
],
"responses": {
"200": {
"description": "A message telling you everything was migrated successfully.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/trello/status": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get migration status",
"responses": {
"200": {
"description": "The migration status",
"schema": {
"$ref": "#/definitions/migration.Status"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/migration/wunderlist/auth": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from wunderlist to Vikunja.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get the auth url from wunderlist",
"responses": {
"200": {
"description": "The auth url.",
"schema": {
"$ref": "#/definitions/handler.AuthURL"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/wunderlist/migrate": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Migrates all folders, lists, tasks, notes, reminders, subtasks and files from wunderlist to vikunja.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Migrate all lists, tasks etc. from wunderlist",
"parameters": [
{
"description": "The auth code previously obtained from the auth url. See the docs for /migration/wunderlist/auth.",
"name": "migrationCode",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/wunderlist.Migration"
}
}
],
"responses": {
"200": {
"description": "A message telling you everything was migrated successfully.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/migration/wunderlist/status": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again.",
"produces": [
"application/json"
],
"tags": [
"migration"
],
"summary": "Get migration status",
"responses": {
"200": {
"description": "The migration status",
"schema": {
"$ref": "#/definitions/migration.Status"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/namespace/{id}": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Updates a namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Updates a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The namespace with updated values you want to update.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Namespace"
}
}
],
"responses": {
"200": {
"description": "The updated namespace.",
"schema": {
"$ref": "#/definitions/models.Namespace"
}
},
"400": {
"description": "Invalid namespace object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/namespaces": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns all namespaces a user has access to.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Get all namespaces a user has access to",
"parameters": [
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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 namespaces by name.",
"name": "s",
"in": "query"
},
{
"type": "boolean",
"description": "If true, also returns all archived namespaces.",
"name": "is_archived",
"in": "query"
},
{
"type": "boolean",
"description": "If true, also returns only namespaces without their lists.",
"name": "namespaces_only",
"in": "query"
2020-06-28 16:25:46 +02:00
}
],
"responses": {
"200": {
"description": "The Namespaces.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.NamespaceWithLists"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Creates a new namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Creates a new namespace",
"parameters": [
{
"description": "The namespace you want to create.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Namespace"
}
}
],
"responses": {
"200": {
"description": "The created namespace.",
"schema": {
"$ref": "#/definitions/models.Namespace"
}
},
"400": {
"description": "Invalid namespace object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/namespaces/{id}": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns a namespace by its ID.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Gets one namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The Namespace",
"schema": {
"$ref": "#/definitions/models.Namespace"
}
},
"403": {
"description": "The user does not have access to that namespace.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Delets a namespace",
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Deletes a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The namespace was successfully deleted.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Invalid namespace object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/namespaces/{id}/lists": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns all lists inside of a namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"namespace"
],
"summary": "Get all lists in a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The lists.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.List"
}
}
},
"403": {
"description": "No access to that namespace.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"404": {
"description": "The namespace does not exist.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/namespaces/{id}/teams": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns a namespace with all teams which have access on a given namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Get teams on a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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 teams by its name.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
"description": "The teams with the right they have.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/models.TeamWithRight"
}
}
},
"403": {
"description": "No right to see the namespace.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Gives a team access to a namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"sharing"
],
"summary": "Add a team to a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The team you want to add to the namespace.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TeamNamespace"
}
}
],
"responses": {
"200": {
"description": "The created team\u003c-\u003enamespace relation.",
"schema": {
"$ref": "#/definitions/models.TeamNamespace"
}
},
"400": {
"description": "Invalid team namespace object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The team does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The team does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/namespaces/{id}/users": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns a namespace with all users which have access on a given namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
"summary": "Get users on a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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 users by its name.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The users with the right they have.",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.UserWithRight"
}
}
},
"403": {
"description": "No right to see the namespace.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Gives a user access to a namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Add a user to a namespace",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Namespace ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The user you want to add to the namespace.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.NamespaceUser"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created user\u003c-\u003enamespace relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.NamespaceUser"
}
},
"400": {
"description": "Invalid user namespace object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The user does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/namespaces/{namespaceID}/lists": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Creates a new list in a given namespace. The user needs write-access to the namespace.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"list"
],
"summary": "Creates a new list",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
"name": "namespaceID",
"in": "path",
"required": true
},
{
"description": "The list you want to create.",
"name": "list",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.List"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created list.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.List"
}
},
"400": {
"description": "Invalid list object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "The user does not have access to the list",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/namespaces/{namespaceID}/teams/{teamID}": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Update a team \u003c-\u003e namespace relation. Mostly used to update the right that team has.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a team \u003c-\u003e namespace relation",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
2020-06-28 16:25:46 +02:00
"name": "namespaceID",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Team ID",
"name": "teamID",
"in": "path",
"required": true
},
{
"description": "The team you want to update.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamNamespace"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated team \u003c-\u003e namespace relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamNamespace"
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "The team does not have admin-access to the namespace",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "Team or namespace does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Delets a team from a namespace. The team won't have access to the namespace anymore.",
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete a team from a namespace",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Namespace ID",
"name": "namespaceID",
"in": "path",
"required": true
2019-10-23 23:11:40 +02:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "team ID",
"name": "teamID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The team was successfully deleted.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "The team does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "team or namespace does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/namespaces/{namespaceID}/users/{userID}": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Update a user \u003c-\u003e namespace relation. Mostly used to update the right that user has.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a user \u003c-\u003e namespace relation",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Namespace ID",
"name": "namespaceID",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "User ID",
"name": "userID",
"in": "path",
"required": true
},
{
"description": "The user you want to update.",
"name": "namespace",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.NamespaceUser"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated user \u003c-\u003e namespace relation.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.NamespaceUser"
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "The user does not have admin-access to the namespace",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "User or namespace does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Delets a user from a namespace. The user won't have access to the namespace anymore.",
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete a user from a namespace",
"parameters": [
{
"type": "integer",
"description": "Namespace ID",
2020-06-28 16:25:46 +02:00
"name": "namespaceID",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "user ID",
"name": "userID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The user was successfully deleted.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the namespace",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "user or namespace does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/register": {
"post": {
"description": "Creates a new user account.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Register",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The user credentials",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/user.APIUserPassword"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "No or invalid user register object provided / User already exists.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/shares/{share}/auth": {
"post": {
"description": "Get a jwt auth token for a shared list from a share hash.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"sharing"
],
2020-06-28 16:25:46 +02:00
"summary": "Get an auth token for a share",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "string",
"description": "The share hash",
"name": "share",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The valid jwt auth token.",
"schema": {
"$ref": "#/definitions/auth.Token"
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid link share object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/subscriptions/{entity}/{entityID}": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Subscribes the current user to an entity.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"subscriptions"
],
"summary": "Subscribes the current user to an entity.",
"parameters": [
{
"type": "string",
"description": "The entity the user subscribes to. Can be either `namespace`, `list` or `task`.",
"name": "entity",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The numeric id of the entity to subscribe to.",
"name": "entityID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The subscription",
"schema": {
"$ref": "#/definitions/models.Subscription"
}
},
"403": {
"description": "The user does not have access to subscribe to this entity.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"412": {
"description": "The subscription entity is invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Unsubscribes the current user to an entity.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"subscriptions"
],
"summary": "Unsubscribe the current user from an entity.",
"parameters": [
{
"type": "string",
"description": "The entity the user subscribed to. Can be either `namespace`, `list` or `task`.",
"name": "entity",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The numeric id of the subscribed entity to.",
"name": "entityID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The subscription",
"schema": {
"$ref": "#/definitions/models.Subscription"
}
},
"403": {
"description": "The user does not have access to subscribe to this entity.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The subscription does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/all": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns all tasks on any list the user has access to.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Get tasks",
"parameters": [
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
2019-10-23 23:11:40 +02:00
"name": "page",
"in": "query"
},
{
"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",
2020-06-28 16:25:46 +02:00
"description": "Search tasks by task text.",
"name": "s",
"in": "query"
2020-06-28 16:25:46 +02:00
},
{
"type": "string",
"description": "The sorting parameter. You can pass this multiple times to get the tasks ordered by multiple different parametes, along with `order_by`. Possible values to sort by are `id`, `title`, `description`, `done`, `done_at`, `due_date`, `created_by_id`, `list_id`, `repeat_after`, `priority`, `start_date`, `end_date`, `hex_color`, `percent_done`, `uid`, `created`, `updated`. Default is `id`.",
2020-06-28 16:25:46 +02:00
"name": "sort_by",
"in": "query"
},
{
"type": "string",
"description": "The ordering parameter. Possible values to order by are `asc` or `desc`. Default is `asc`.",
"name": "order_by",
"in": "query"
},
{
"type": "string",
"description": "The name of the field to filter by. Allowed values are all task properties. Task properties which are their own object require passing in the id of that entity. Accepts an array for multiple filters which will be chanied together, all supplied filter must match.",
2020-06-28 16:25:46 +02:00
"name": "filter_by",
"in": "query"
},
{
"type": "string",
"description": "The value to filter for.",
"name": "filter_value",
"in": "query"
},
{
"type": "string",
"description": "The comparator to use for a filter. Available values are `equals`, `greater`, `greater_equals`, `less`, `less_equals`, `like` and `in`. `in` expects comma-separated values in `filter_value`. Defaults to `equals`",
2020-06-28 16:25:46 +02:00
"name": "filter_comparator",
"in": "query"
},
{
"type": "string",
"description": "The concatinator to use for filters. Available values are `and` or `or`. Defaults to `or`.",
"name": "filter_concat",
"in": "query"
},
{
"type": "string",
"description": "If set to true the result will include filtered fields whose value is set to `null`. Available values are `true` or `false`. Defaults to `false`.",
"name": "filter_include_nulls",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The tasks",
"schema": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Task"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/tasks/bulk": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Updates a bunch of tasks at once. This includes marking them as done. Note: although you could supply another ID, it will be ignored. Use task_ids instead.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a bunch of tasks at once",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The task object. Looks like a normal task, the only difference is it uses an array of list_ids to update.",
"name": "task",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.BulkTask"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated task object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Task"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid task object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the task (aka its list)",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/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": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Task"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "Task not found",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{id}": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Updates a task. This includes marking it as done. Assignees you pass will be updated, see their individual endpoints for more details on how this is done. To update labels, see the description of the endpoint.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Update a task",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The task object",
"name": "task",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.Task"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated task object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Task"
}
},
"400": {
"description": "Invalid task object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the task (aka its list)",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Deletes a task from a list. This does not mean \"mark it done\".",
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete a task",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created task object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid task ID provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "The user does not have access to the list",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{id}/attachments": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Get all task attachments for one task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Get all attachments for one task.",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"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"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "All attachments for this task",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "No access to this task.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The task does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Upload a task attachment. You can pass multiple files with the files form param.",
"consumes": [
2020-06-28 16:25:46 +02:00
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Upload a task attachment",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"type": "string",
"description": "The file, as multipart form file. You can pass multiple.",
"name": "files",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "Attachments were uploaded successfully.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "No access to the task.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The task does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/tasks/{id}/attachments/{attachmentID}": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Get one attachment for download. **Returns json on error.**",
"produces": [
2020-06-28 16:25:46 +02:00
"application/octet-stream"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Get one attachment.",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Attachment ID",
"name": "attachmentID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The attachment file.",
"schema": {
2020-06-28 16:25:46 +02:00
"type": ""
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "No access to this task.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The task does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Delete an attachment.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete an attachment",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Attachment ID",
"name": "attachmentID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The attachment was deleted successfully.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"403": {
2020-06-28 16:25:46 +02:00
"description": "No access to this task.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The task does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/tasks/{taskID}/assignees": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns an array with all assignees for this task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"assignees"
],
2020-06-28 16:25:46 +02:00
"summary": "Get all assignees for a task",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"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 assignees by their username.",
"name": "s",
"in": "query"
},
{
"type": "integer",
"description": "Task ID",
"name": "taskID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The assignees",
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/user.User"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Adds a new assignee to a task. The assignee needs to have access to the list, the doer must be able to edit this task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"assignees"
],
2020-06-28 16:25:46 +02:00
"summary": "Add a new assignee to a task",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The assingee object",
"name": "assignee",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskAssginee"
}
2020-06-28 16:25:46 +02:00
},
{
"type": "integer",
"description": "Task ID",
"name": "taskID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created assingee object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskAssginee"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid assignee object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{taskID}/assignees/bulk": {
"post": {
2020-06-28 16:25:46 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Adds multiple new assignees to a task. The assignee needs to have access to the list, the doer must be able to edit this task. Every user not in the list will be unassigned from the task, pass an empty array to unassign everyone.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"assignees"
],
2020-06-28 16:25:46 +02:00
"summary": "Add multiple new assignees to a task",
2018-12-25 21:45:26 +01:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The array of assignees",
"name": "assignee",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.BulkAssignees"
}
},
{
"type": "integer",
"description": "Task ID",
"name": "taskID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created assingees object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskAssginee"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid assignee object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{taskID}/assignees/{userID}": {
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Un-assign a user from a task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"assignees"
],
2020-06-28 16:25:46 +02:00
"summary": "Delete an assignee",
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "taskID",
"in": "path",
"required": true
2019-12-07 23:28:45 +01:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Assignee user ID",
"name": "userID",
"in": "path",
"required": true
2018-12-25 21:45:26 +01:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The assignee was successfully deleted.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "Not allowed to delete the assignee.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
2018-12-25 21:45:26 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{taskID}/comments": {
"get": {
2018-12-28 22:49:46 +01:00
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-28 22:49:46 +01:00
}
],
2020-06-28 16:25:46 +02:00
"description": "Get all task comments. The user doing this need to have at least read access to the task.",
2018-12-28 22:49:46 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Get all task comments",
2018-12-28 22:49:46 +01:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Task ID",
"name": "taskID",
"in": "path",
"required": true
2018-12-28 22:49:46 +01:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The array with all task comments",
2018-12-28 22:49:46 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskComment"
}
2018-12-28 22:49:46 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"put": {
2019-12-07 23:28:45 +01:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Create a new task comment. The user doing this need to have at least write access to the task this comment should belong to.",
2019-12-07 23:28:45 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Create a new task comment",
2019-12-07 23:28:45 +01:00
"parameters": [
2020-06-28 16:25:46 +02:00
{
"description": "The task comment object",
"name": "relation",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TaskComment"
}
},
2019-12-07 23:28:45 +01:00
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "taskID",
2019-12-07 23:28:45 +01:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created task comment object.",
2019-12-07 23:28:45 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskComment"
2019-12-07 23:28:45 +01:00
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid task comment object provided.",
2019-12-07 23:28:45 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-12-07 23:28:45 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{taskID}/comments/{commentID}": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Remove a task comment. The user doing this need to have at least read access to the task this comment belongs to.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Remove a task comment",
"parameters": [
{
"type": "integer",
"description": "Task ID",
2020-06-28 16:25:46 +02:00
"name": "taskID",
"in": "path",
2020-06-28 16:25:46 +02:00
"required": true
},
{
"type": "integer",
"description": "Comment ID",
"name": "commentID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The task comment object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskComment"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid task comment object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The task comment was not found.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Update an existing task comment. The user doing this need to have at least write access to the task this comment belongs to.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Update an existing task comment",
"parameters": [
{
"type": "integer",
"description": "Task ID",
2020-06-28 16:25:46 +02:00
"name": "taskID",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Comment ID",
"name": "commentID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated task comment object.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskComment"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid task comment object provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The task comment was not found.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
2019-10-16 22:52:29 +02:00
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
2019-10-16 22:52:29 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Remove a task comment. The user doing this need to have at least write access to the task this comment belongs to.",
2019-10-16 22:52:29 +02:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Remove a task comment",
2019-10-16 22:52:29 +02:00
"parameters": [
{
"type": "integer",
"description": "Task ID",
2020-06-28 16:25:46 +02:00
"name": "taskID",
2019-10-16 22:52:29 +02:00
"in": "path",
"required": true
2019-10-23 23:11:40 +02:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Comment ID",
"name": "commentID",
"in": "path",
"required": true
2019-10-16 22:52:29 +02:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The task comment was successfully deleted.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
2019-10-16 22:52:29 +02:00
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid task comment object provided.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The task comment was not found.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/tasks/{taskID}/labels/bulk": {
"post": {
2019-10-16 22:52:29 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"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.",
2019-10-16 22:52:29 +02:00
"consumes": [
2020-06-28 16:25:46 +02:00
"application/json"
2019-10-16 22:52:29 +02:00
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"labels"
2019-10-16 22:52:29 +02:00
],
2020-06-28 16:25:46 +02:00
"summary": "Update all labels on a task.",
2019-10-16 22:52:29 +02:00
"parameters": [
2020-06-28 16:25:46 +02:00
{
"description": "The array of labels",
"name": "label",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LabelTaskBulk"
}
},
2019-10-16 22:52:29 +02:00
{
"type": "integer",
"description": "Task ID",
2020-06-28 16:25:46 +02:00
"name": "taskID",
2019-10-16 22:52:29 +02:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated labels object.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.LabelTaskBulk"
2019-10-16 22:52:29 +02:00
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid label object provided.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{taskID}/relations": {
"put": {
2019-10-16 22:52:29 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Creates a new relation between two tasks. The user needs to have update rights on the base task and at least read rights on the other task. Both tasks do not need to be on the same list. Take a look at the docs for available task relation kinds.",
"consumes": [
"application/json"
],
2019-10-16 22:52:29 +02:00
"produces": [
2020-06-28 16:25:46 +02:00
"application/json"
2019-10-16 22:52:29 +02:00
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Create a new relation between two tasks",
2019-10-16 22:52:29 +02:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The relation object",
"name": "relation",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TaskRelation"
}
2019-10-16 22:52:29 +02:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "taskID",
2019-10-16 22:52:29 +02:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created task relation object.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TaskRelation"
2019-10-16 22:52:29 +02:00
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid task relation object provided.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"delete": {
"security": [
{
"JWTKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
2020-06-28 16:25:46 +02:00
"summary": "Remove a task relation",
2019-10-16 22:52:29 +02:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The relation object",
"name": "relation",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.TaskRelation"
}
2019-10-16 22:52:29 +02:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Task ID",
"name": "taskID",
2019-10-16 22:52:29 +02:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The task relation was successfully deleted.",
2019-10-16 22:52:29 +02:00
"schema": {
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Invalid task relation object provided.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"404": {
2020-06-28 16:25:46 +02:00
"description": "The task relation was not found.",
2019-10-16 22:52:29 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-10-16 22:52:29 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
2018-12-02 01:49:30 +01:00
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{task}/labels": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns all labels which are assicociated with a given task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"labels"
],
2020-06-28 16:25:46 +02:00
"summary": "Get all labels on a task",
"parameters": [
2020-06-28 16:25:46 +02:00
{
"type": "integer",
"description": "Task ID",
"name": "task",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
2019-10-23 23:11:40 +02:00
"name": "page",
"in": "query"
},
{
"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",
2020-06-28 16:25:46 +02:00
"description": "Search labels by label text.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The labels",
"schema": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Label"
}
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2019-01-08 20:13:07 +01:00
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Add a label to a task. The user needs to have write-access to the list to be able do this.",
2019-01-08 20:13:07 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"labels"
2019-01-08 20:13:07 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Add a label to a task",
2019-01-08 20:13:07 +01:00
"parameters": [
{
"type": "integer",
"description": "Task ID",
2020-06-28 16:25:46 +02:00
"name": "task",
2019-01-08 20:13:07 +01:00
"in": "path",
"required": true
2020-06-28 16:25:46 +02:00
},
{
"description": "The label object",
"name": "label",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LabelTask"
}
2019-01-08 20:13:07 +01:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created label relation object.",
2019-01-08 20:13:07 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.LabelTask"
2019-01-08 20:13:07 +01:00
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid label object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"403": {
"description": "Not allowed to add the label.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "The label does not exist.",
2019-01-08 20:13:07 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-01-08 20:13:07 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/tasks/{task}/labels/{label}": {
"delete": {
2019-01-08 20:13:07 +01:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Remove a label from a task. The user needs to have write-access to the list to be able do this.",
2019-01-08 20:13:07 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"labels"
2019-01-08 20:13:07 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Remove a label from a task",
2019-01-08 20:13:07 +01:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Task ID",
"name": "task",
"in": "path",
"required": true
2019-01-08 20:13:07 +01:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Label ID",
"name": "label",
2019-01-08 20:13:07 +01:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The label was successfully removed.",
2019-01-08 20:13:07 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
2019-01-08 20:13:07 +01:00
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "Not allowed to remove the label.",
2019-01-08 20:13:07 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "Label not found.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
2019-01-08 20:13:07 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/teams": {
"get": {
2019-01-08 20:13:07 +01:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns all teams the current user is part of.",
2019-01-08 20:13:07 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2019-01-08 20:13:07 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Get teams",
2019-01-08 20:13:07 +01:00
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "The page number. Used for pagination. If not provided, the first page of results is returned.",
"name": "page",
"in": "query"
2019-01-08 20:13:07 +01:00
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"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 teams by its name.",
"name": "s",
"in": "query"
2019-01-08 20:13:07 +01:00
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The teams.",
2019-01-08 20:13:07 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"type": "array",
"items": {
"$ref": "#/definitions/models.Team"
}
2019-01-08 20:13:07 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"put": {
2019-01-10 00:08:12 +01:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Creates a new team in a given namespace. The user needs write-access to the namespace.",
2019-01-10 00:08:12 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2019-01-10 00:08:12 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Creates a new team",
2019-01-10 00:08:12 +01:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The team you want to create.",
"name": "team",
2019-01-10 00:08:12 +01:00
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Team"
2019-01-10 00:08:12 +01:00
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The created team.",
2019-01-10 00:08:12 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Team"
2019-01-10 00:08:12 +01:00
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid team object provided.",
2019-01-10 00:08:12 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-01-10 00:08:12 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/teams/{id}": {
"get": {
2019-09-25 20:44:41 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns a team by its ID.",
2019-09-25 20:44:41 +02:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2019-09-25 20:44:41 +02:00
],
2020-06-28 16:25:46 +02:00
"summary": "Gets one team",
2019-09-25 20:44:41 +02:00
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "id",
2019-09-25 20:44:41 +02:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The team",
2019-09-25 20:44:41 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Team"
2019-09-25 20:44:41 +02:00
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "The user does not have access to the team",
2019-09-25 20:44:41 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-09-25 20:44:41 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
2020-06-28 16:25:46 +02:00
"post": {
2019-09-25 20:44:41 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Updates a team.",
2019-09-25 20:44:41 +02:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2019-09-25 20:44:41 +02:00
],
2020-06-28 16:25:46 +02:00
"summary": "Updates a team",
2019-09-25 20:44:41 +02:00
"parameters": [
{
2020-06-28 16:25:46 +02:00
"type": "integer",
"description": "Team ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "The team with updated values you want to update.",
"name": "team",
2019-09-25 20:44:41 +02:00
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Team"
2019-09-25 20:44:41 +02:00
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The updated team.",
2019-09-25 20:44:41 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Team"
2019-09-25 20:44:41 +02:00
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid team object provided.",
2019-09-25 20:44:41 +02:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2019-09-25 20:44:41 +02:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
},
"delete": {
2018-12-31 02:18:41 +01:00
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
2020-06-28 16:25:46 +02:00
"description": "Delets a team. This will also remove the access for all users in that team.",
2018-12-31 02:18:41 +01:00
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2018-12-31 02:18:41 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Deletes a team",
2018-12-31 02:18:41 +01:00
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "id",
2018-12-31 02:18:41 +01:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The team was successfully deleted.",
2018-12-31 02:18:41 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Invalid team object provided.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/teams/{id}/members": {
2018-12-31 02:18:41 +01:00
"put": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
2020-06-28 16:25:46 +02:00
"description": "Add a user to a team.",
2018-12-31 02:18:41 +01:00
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2018-12-31 02:18:41 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Add a user to a team",
2018-12-31 02:18:41 +01:00
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "id",
2018-12-31 02:18:41 +01:00
"in": "path",
"required": true
},
{
2020-06-28 16:25:46 +02:00
"description": "The user to be added to a team.",
"name": "team",
2018-12-31 02:18:41 +01:00
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamMember"
2018-12-31 02:18:41 +01:00
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The newly created member object",
2018-12-31 02:18:41 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.TeamMember"
2018-12-31 02:18:41 +01:00
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Invalid member object provided.",
2018-12-31 02:18:41 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
2020-06-28 16:25:46 +02:00
"403": {
"description": "The user does not have access to the team",
2018-12-31 02:18:41 +01:00
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/teams/{id}/members/{userID}": {
2018-12-31 02:18:41 +01:00
"delete": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
2018-12-31 02:18:41 +01:00
}
],
2020-06-28 16:25:46 +02:00
"description": "Remove a user from a team. This will also revoke any access this user might have via that team.",
2018-12-31 02:18:41 +01:00
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"team"
2018-12-31 02:18:41 +01:00
],
2020-06-28 16:25:46 +02:00
"summary": "Remove a user from a team",
2018-12-31 02:18:41 +01:00
"parameters": [
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "Team ID",
"name": "id",
2018-12-31 02:18:41 +01:00
"in": "path",
"required": true
},
{
"type": "integer",
2020-06-28 16:25:46 +02:00
"description": "User ID",
"name": "userID",
2018-12-31 02:18:41 +01:00
"in": "path",
"required": true
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The user was successfully removed from the team.",
2018-12-31 02:18:41 +01:00
"schema": {
2019-03-21 07:40:56 +01:00
"$ref": "#/definitions/models.Message"
2018-12-31 02:18:41 +01:00
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/teams/{id}/members/{userID}/admin": {
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "If a user is team admin, this will make them member and vise-versa.",
"produces": [
"application/json"
],
"tags": [
"team"
],
"summary": "Toggle a team member's admin status",
"parameters": [
{
"type": "integer",
"description": "Team ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "User ID",
"name": "userID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The member right was successfully changed.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2018-12-31 02:18:41 +01:00
}
},
"/test/{table}": {
"patch": {
"description": "Fills the specified table with the content provided in the payload. You need to enable the testing endpoint before doing this and provide the `Authorization: \u003ctoken\u003e` secret when making requests to this endpoint. See docs for more details.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"testing"
],
"summary": "Reset the db to a defined state",
"parameters": [
{
"type": "string",
"description": "The table to reset",
"name": "table",
"in": "path",
"required": true
}
],
"responses": {
"201": {
"description": "Everything has been imported successfully.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/user.User"
}
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns the current user object.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Get user information",
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
}
},
"404": {
"description": "User does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/user/confirm": {
"post": {
"description": "Confirms the email of a newly registered user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Confirm the email of a new user",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The token.",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.EmailConfirm"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"412": {
"description": "Bad token provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/password": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Lets the current user change its password.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Change password",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The current and new password.",
"name": "userPassword",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/v1.UserPassword"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "User does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
2020-06-28 16:25:46 +02:00
}
},
"/user/password/reset": {
"post": {
"description": "Resets a user email with a previously reset token.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Resets a password",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The token with the new password.",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/user.PasswordReset"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Bad token provided.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/password/token": {
"post": {
"description": "Requests a token to reset a users password. The token is sent via email.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Request password reset token",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The username of the user to request a token for.",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.PasswordTokenRequest"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"404": {
"description": "The user does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/user/settings/avatar": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns the current user's avatar setting.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Return user avatar setting",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.UserAvatarProvider"
}
},
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
},
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Changes the user avatar. Valid types are gravatar (uses the user email), upload, initials, default.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Set the user's avatar",
"parameters": [
{
"description": "The user's avatar setting",
"name": "avatar",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UserAvatarProvider"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
2020-11-21 21:51:55 +01:00
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/user/settings/avatar/upload": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Upload a user avatar. This will also set the user's avatar provider to \"upload\"",
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Upload a user avatar",
"parameters": [
{
"type": "string",
"description": "The avatar as single file.",
"name": "avatar",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "The avatar was set successfully.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "File is no image.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"403": {
"description": "File too large.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/email": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Lets the current user change their email address.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
2020-06-28 16:25:46 +02:00
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Update email address",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The new email address and current password.",
"name": "userEmailUpdate",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/user.EmailUpdate"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "OK",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "User does not exist.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/user/settings/general": {
2020-11-21 21:51:55 +01:00
"post": {
"security": [
{
"JWTKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Change general user settings of the current user.",
2020-11-21 21:51:55 +01:00
"parameters": [
{
"description": "The updated user settings",
2020-11-21 21:51:55 +01:00
"name": "avatar",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UserSettings"
2020-11-21 21:51:55 +01:00
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/totp": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Returns the current user totp setting or an error if it is not enabled.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Totp setting for the current user",
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The totp settings.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.TOTP"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/totp/disable": {
"post": {
2020-06-28 16:25:46 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Disables any totp settings for the current user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Disable totp settings",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The current user's password (only password is enough).",
"name": "totp",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.Login"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "Successfully disabled",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
2020-06-28 16:25:46 +02:00
"400": {
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "User does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/totp/enable": {
"post": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
2020-06-28 16:25:46 +02:00
"description": "Enables a previously enrolled totp setting by providing a totp passcode.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Enable a previously enrolled totp setting.",
"parameters": [
{
2020-06-28 16:25:46 +02:00
"description": "The totp passcode.",
"name": "totp",
"in": "body",
"required": true,
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.TOTPPasscode"
}
}
],
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "Successfully enabled",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"400": {
"description": "Something's invalid.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "User does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"412": {
"description": "TOTP is not enrolled.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/totp/enroll": {
"post": {
2020-06-28 16:25:46 +02:00
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Creates an initial setup for the user in the db. After this step, the user needs to verify they have a working totp setup with the \"enable totp\" endpoint.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Enroll a user into totp",
"responses": {
"200": {
"description": "OK",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.TOTP"
}
},
"400": {
2020-06-28 16:25:46 +02:00
"description": "Something's invalid.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"404": {
"description": "User does not exist.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2020-06-28 16:25:46 +02:00
"/user/settings/totp/qrcode": {
"get": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Returns a qr code for easier setup at end user's devices.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
2020-06-28 16:25:46 +02:00
"summary": "Totp QR Code",
"responses": {
"200": {
2020-06-28 16:25:46 +02:00
"description": "The qr code as jpeg image",
"schema": {
2020-06-28 16:25:46 +02:00
"type": ""
}
},
"500": {
2020-06-28 16:25:46 +02:00
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
2019-12-07 20:52:04 +01:00
"/user/token": {
"post": {
"description": "Returns a new valid jwt user token with an extended length.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Renew user token",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/auth.Token"
2019-12-07 20:52:04 +01:00
}
},
"400": {
"description": "Only user token are available for renew.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/users": {
"get": {
"security": [
{
2019-01-03 23:22:06 +01:00
"JWTKeyAuth": []
}
],
"description": "Lists all users (without emailadresses). Also possible to search for a specific user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Get users",
"parameters": [
{
"type": "string",
"description": "Search for a user by its name.",
"name": "s",
"in": "query"
}
],
"responses": {
"200": {
"description": "All (found) users.",
"schema": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
}
}
},
"400": {
"description": "Something's invalid.",
"schema": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
2020-06-28 16:25:46 +02:00
},
"/{username}/avatar": {
"get": {
"description": "Returns the user avatar as image.",
"produces": [
"application/octet-stream"
],
"tags": [
"user"
],
"summary": "User Avatar",
"parameters": [
{
"type": "string",
"description": "The username of the user who's avatar you want to get",
"name": "username",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The size of the avatar you want to get",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "The avatar",
"schema": {
"type": ""
}
},
"404": {
"description": "The user does not exist.",
"schema": {
"$ref": "#/definitions/models.Message"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
}
},
"definitions": {
"auth.Token": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"background.Image": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"info": {
"description": "This can be used to supply extra information from an image provider to clients",
"type": "object"
},
"thumb": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
2019-10-16 22:52:29 +02:00
"files.File": {
"type": "object",
"properties": {
"created": {
"type": "string"
},
"id": {
"type": "integer"
},
"mime": {
"type": "string"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
}
}
},
"handler.AuthURL": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
},
"microsofttodo.Migration": {
"type": "object",
"properties": {
"code": {
"type": "string"
}
}
},
"migration.Status": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"migrator_name": {
"type": "string"
},
2020-06-28 16:25:46 +02:00
"time": {
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"models.Bucket": {
"type": "object",
"properties": {
2020-06-28 16:25:46 +02:00
"created": {
"description": "A timestamp when this bucket was created. You cannot change this value.",
"type": "string"
},
"created_by": {
"description": "The user who initially created the bucket.",
"$ref": "#/definitions/user.User"
},
"filter_by": {
"description": "The field name of the field to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"filter_comparator": {
"description": "The comparator for field and value",
"type": "array",
"items": {
"type": "string"
}
},
"filter_concat": {
"description": "The way all filter conditions are concatenated together, can be either \"and\" or \"or\".,",
"type": "string"
},
"filter_include_nulls": {
"description": "If set to true, the result will also include null values",
"type": "boolean"
},
"filter_value": {
"description": "The value of the field name to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"id": {
2020-06-28 16:25:46 +02:00
"description": "The unique, numeric id of this bucket.",
"type": "integer"
},
"limit": {
"description": "How many tasks can be at the same time on this board max",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"list_id": {
"description": "The list this bucket belongs to.",
"type": "integer"
},
"order_by": {
"description": "The query parameter to order the items by. This can be either asc or desc, with asc being the default.",
"type": "array",
"items": {
"type": "string"
}
},
"sort_by": {
"description": "The query parameter to sort by. This is for ex. done, priority, etc.",
"type": "array",
"items": {
"type": "string"
}
},
2020-06-28 16:25:46 +02:00
"tasks": {
"description": "All tasks which belong to this bucket.",
"type": "array",
"items": {
"$ref": "#/definitions/models.Task"
}
},
"title": {
"description": "The title of this bucket.",
2019-01-03 23:22:06 +01:00
"type": "string",
2020-06-28 16:25:46 +02:00
"minLength": 1
},
"updated": {
"description": "A timestamp when this bucket was last updated. You cannot change this value.",
"type": "string"
}
}
},
2019-01-08 20:13:07 +01:00
"models.BulkAssignees": {
"type": "object",
"properties": {
"assignees": {
"description": "A list with all assignees",
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2019-01-08 20:13:07 +01:00
}
}
}
},
2018-12-28 22:49:46 +01:00
"models.BulkTask": {
"type": "object",
"properties": {
2018-12-29 15:29:50 +01:00
"assignees": {
2019-01-03 23:22:06 +01:00
"description": "An array of users who are assigned to this task",
2018-12-29 15:29:50 +01:00
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2018-12-29 15:29:50 +01:00
}
},
2019-10-16 22:52:29 +02:00
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
2020-06-28 16:25:46 +02:00
"bucket_id": {
"description": "BucketID is the ID of the kanban bucket this task belongs to.",
2018-12-28 22:49:46 +01:00
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"created": {
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
},
"created_by": {
2019-01-03 23:22:06 +01:00
"description": "The user who initially created the task.",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2018-12-28 22:49:46 +01:00
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The task description.",
"type": "string"
2018-12-28 22:49:46 +01:00
},
"done": {
"description": "Whether a task is done or not.",
2018-12-28 22:49:46 +01:00
"type": "boolean"
},
2020-06-28 16:25:46 +02:00
"done_at": {
"description": "The time when a task was marked as done.",
"type": "string"
2019-05-22 19:48:48 +02:00
},
2020-06-28 16:25:46 +02:00
"due_date": {
"description": "The time when the task is due.",
"type": "string"
2018-12-28 22:49:46 +01:00
},
2020-06-28 16:25:46 +02:00
"end_date": {
2019-01-03 23:22:06 +01:00
"description": "When this task ends.",
2020-06-28 16:25:46 +02:00
"type": "string"
2018-12-28 22:49:46 +01:00
},
2020-06-28 16:25:46 +02:00
"hex_color": {
2019-04-30 11:26:37 +02:00
"description": "The task color in hex",
"type": "string",
"maxLength": 6
},
2018-12-28 22:49:46 +01:00
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this task.",
2018-12-28 22:49:46 +01:00
"type": "integer"
},
2019-12-07 23:28:45 +01:00
"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"
},
"is_favorite": {
"description": "True if a task is a favorite task. Favorite tasks show up in a separate \"Important\" list",
"type": "boolean"
},
2018-12-31 02:18:41 +01:00
"labels": {
2019-01-03 23:22:06 +01:00
"description": "An array of labels which are associated with this task.",
2018-12-31 02:18:41 +01:00
"type": "array",
"items": {
"$ref": "#/definitions/models.Label"
}
},
2020-06-28 16:25:46 +02:00
"list_id": {
"description": "The list this task belongs to.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"percent_done": {
2019-09-21 12:52:10 +02:00
"description": "Determines how far a task is left from being done",
"type": "number"
},
2020-06-28 16:25:46 +02:00
"position": {
"description": "The position of the task - any task list can be sorted as usual by this parameter.\nWhen accessing tasks via kanban buckets, this is primarily used to sort them based on a range\nWe're using a float64 here to make it possible to put any task within any two other tasks (by changing the number).\nYou would calculate the new position between two tasks with something like task3.position = (task2.position - task1.position) / 2.\nA 64-Bit float leaves plenty of room to initially give tasks a position with 2^16 difference to the previous task\nwhich also leaves a lot of room for rearranging and sorting later.",
"type": "number"
},
2018-12-28 22:49:46 +01:00
"priority": {
2019-01-03 23:22:06 +01:00
"description": "The task priority. Can be anything you want, it is possible to sort by this later.",
2018-12-28 22:49:46 +01:00
"type": "integer"
},
2019-09-25 20:44:41 +02:00
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
},
2020-06-28 16:25:46 +02:00
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
2018-12-28 22:49:46 +01:00
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"type": "string"
2018-12-28 22:49:46 +01:00
}
},
2020-06-28 16:25:46 +02:00
"repeat_after": {
2019-01-03 23:22:06 +01:00
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
2018-12-28 22:49:46 +01:00
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
},
"start_date": {
2019-01-03 23:22:06 +01:00
"description": "When this task starts.",
2020-06-28 16:25:46 +02:00
"type": "string"
2018-12-28 22:49:46 +01:00
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
},
2018-12-28 22:49:46 +01:00
"task_ids": {
2019-01-03 23:22:06 +01:00
"description": "A list of task ids to update",
2018-12-28 22:49:46 +01:00
"type": "array",
"items": {
"type": "integer"
}
},
2020-06-28 16:25:46 +02:00
"title": {
2019-01-03 23:22:06 +01:00
"description": "The task text. This is what you'll see in the list.",
"type": "string",
"maxLength": 250,
"minLength": 1
2018-12-28 22:49:46 +01:00
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
}
}
},
2018-12-31 02:18:41 +01:00
"models.Label": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this label was created. You cannot change this value.",
"type": "string"
2018-12-31 02:18:41 +01:00
},
"created_by": {
2019-01-03 23:22:06 +01:00
"description": "The user who created this label",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2018-12-31 02:18:41 +01:00
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The label description.",
"type": "string"
2018-12-31 02:18:41 +01:00
},
"hex_color": {
2019-01-03 23:22:06 +01:00
"description": "The color this label has",
"type": "string",
"maxLength": 6
2018-12-31 02:18:41 +01:00
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this label.",
2018-12-31 02:18:41 +01:00
"type": "integer"
},
"title": {
2019-01-03 23:22:06 +01:00
"description": "The title of the lable. You'll see this one on tasks associated with it.",
"type": "string",
"maxLength": 250,
"minLength": 1
2018-12-31 02:18:41 +01:00
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this label was last updated. You cannot change this value.",
"type": "string"
2018-12-31 02:18:41 +01:00
}
}
},
2019-03-21 07:40:56 +01:00
"models.LabelTask": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
2019-03-21 07:40:56 +01:00
},
"label_id": {
"description": "The label id you want to associate with a task.",
"type": "integer"
}
}
},
2019-01-10 00:08:12 +01:00
"models.LabelTaskBulk": {
"type": "object",
"properties": {
"labels": {
"description": "All labels you want to update at once.",
2019-01-10 00:08:12 +01:00
"type": "array",
"items": {
"$ref": "#/definitions/models.Label"
}
}
}
},
"models.LinkSharing": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this list was shared. You cannot change this value.",
"type": "string"
},
"hash": {
"description": "The public id to get this shared list",
"type": "string"
},
"id": {
"description": "The ID of the shared thing",
"type": "integer"
},
"right": {
"description": "The right this list is shared with. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
},
"shared_by": {
"description": "The user who shared this list",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
},
"sharing_type": {
"description": "The kind of this link. 0 = undefined, 1 = without password, 2 = with password (currently not implemented).",
"type": "integer",
"default": 0,
"maximum": 2
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this share was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.List": {
"type": "object",
"properties": {
2020-06-28 16:25:46 +02:00
"background_information": {
"description": "Holds extra information about the background set since some background providers require attribution or similar. If not null, the background can be accessed at /lists/{listID}/background",
"type": "object"
},
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this list was created. You cannot change this value.",
"type": "string"
},
"description": {
"description": "The description of the list.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"hex_color": {
"description": "The hex color of this list",
"type": "string",
"maxLength": 6
},
"id": {
"description": "The unique, numeric id of this list.",
2018-11-26 21:24:00 +01:00
"type": "integer"
},
2019-12-07 23:28:45 +01:00
"identifier": {
"description": "The unique list short identifier. Used to build task identifiers.",
"type": "string",
"maxLength": 10,
"minLength": 0
},
2020-06-28 16:25:46 +02:00
"is_archived": {
"description": "Whether or not a list is archived.",
"type": "boolean"
},
"is_favorite": {
"description": "True if a list is a favorite. Favorite lists show up in a separate namespace.",
"type": "boolean"
},
2020-06-28 16:25:46 +02:00
"namespace_id": {
"type": "integer"
},
"owner": {
"description": "The user who created this list.",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2018-12-22 16:45:16 +01:00
},
"subscription": {
"description": "The subscription status for the user reading this list. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one list.",
"$ref": "#/definitions/models.Subscription"
},
"title": {
"description": "The title of the list. You'll see this in the namespace overview.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this list was last updated. You cannot change this value.",
"type": "string"
2019-01-08 20:13:07 +01:00
}
}
},
"models.ListDuplicate": {
"type": "object",
"properties": {
"list": {
"description": "The copied list",
"$ref": "#/definitions/models.List"
},
"namespace_id": {
"description": "The target namespace ID",
"type": "integer"
}
}
},
"models.ListUser": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this list \u003c-\u003e user relation.",
"type": "integer"
},
"right": {
2019-01-03 23:22:06 +01:00
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"user_id": {
"description": "The username.",
"type": "string"
}
}
},
"models.Message": {
"type": "object",
"properties": {
"message": {
2019-01-03 23:22:06 +01:00
"description": "A standard message.",
"type": "string"
}
}
},
"models.Namespace": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this namespace was created. You cannot change this value.",
"type": "string"
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The description of the namespace",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"hex_color": {
"description": "The hex color of this namespace",
"type": "string",
"maxLength": 6
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this namespace.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"is_archived": {
"description": "Whether or not a namespace is archived.",
"type": "boolean"
},
"owner": {
2019-01-03 23:22:06 +01:00
"description": "The user who owns this namespace",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
},
2020-06-28 16:25:46 +02:00
"title": {
"description": "The name of this namespace.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.NamespaceUser": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this namespace \u003c-\u003e user relation.",
"type": "integer"
},
"right": {
2019-01-03 23:22:06 +01:00
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"user_id": {
"description": "The username.",
"type": "string"
}
}
},
"models.NamespaceWithLists": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this namespace was created. You cannot change this value.",
"type": "string"
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The description of the namespace",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"hex_color": {
"description": "The hex color of this namespace",
"type": "string",
"maxLength": 6
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this namespace.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"is_archived": {
"description": "Whether or not a namespace is archived.",
"type": "boolean"
},
"lists": {
"type": "array",
"items": {
"$ref": "#/definitions/models.List"
}
},
2020-06-28 16:25:46 +02:00
"owner": {
"description": "The user who owns this namespace",
"$ref": "#/definitions/user.User"
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
},
2020-06-28 16:25:46 +02:00
"title": {
2019-01-03 23:22:06 +01:00
"description": "The name of this namespace.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
}
}
},
2019-09-25 20:44:41 +02:00
"models.RelatedTaskMap": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/models.Task"
2019-09-25 20:44:41 +02:00
}
}
},
"models.SavedFilter": {
"type": "object",
"properties": {
"created": {
"description": "A timestamp when this filter was created. You cannot change this value.",
"type": "string"
},
"description": {
"description": "The description of the filter",
"type": "string"
},
"filters": {
"description": "The actual filters this filter contains",
"$ref": "#/definitions/models.TaskCollection"
},
"id": {
"description": "The unique numeric id of this saved filter",
"type": "integer"
},
"owner": {
"description": "The user who owns this filter",
"$ref": "#/definitions/user.User"
},
"title": {
"description": "The title of the filter.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
"description": "A timestamp when this filter was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.Subscription": {
"type": "object",
"properties": {
"created": {
"description": "A timestamp when this subscription was created. You cannot change this value.",
"type": "string"
},
"entity": {
"type": "string"
},
"entity_id": {
"description": "The id of the entity to subscribe to.",
"type": "integer"
},
"id": {
"description": "The numeric ID of the subscription",
"type": "integer"
},
"user": {
"description": "The user who made this subscription",
"$ref": "#/definitions/user.User"
}
}
},
"models.Task": {
"type": "object",
"properties": {
"assignees": {
"description": "An array of users who are assigned to this task",
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
}
},
2019-10-16 22:52:29 +02:00
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
2020-06-28 16:25:46 +02:00
"bucket_id": {
"description": "BucketID is the ID of the kanban bucket this task belongs to.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"created": {
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
},
"created_by": {
"description": "The user who initially created the task.",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
},
"description": {
"description": "The task description.",
"type": "string"
},
"done": {
"description": "Whether a task is done or not.",
"type": "boolean"
},
2020-06-28 16:25:46 +02:00
"done_at": {
"description": "The time when a task was marked as done.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"due_date": {
"description": "The time when the task is due.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"end_date": {
"description": "When this task ends.",
2020-06-28 16:25:46 +02:00
"type": "string"
},
2020-06-28 16:25:46 +02:00
"hex_color": {
"description": "The task color in hex",
"type": "string",
"maxLength": 6
},
"id": {
"description": "The unique, numeric id of this task.",
"type": "integer"
},
2019-12-07 23:28:45 +01:00
"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"
},
"is_favorite": {
"description": "True if a task is a favorite task. Favorite tasks show up in a separate \"Important\" list",
"type": "boolean"
},
"labels": {
"description": "An array of labels which are associated with this task.",
"type": "array",
"items": {
"$ref": "#/definitions/models.Label"
}
},
2020-06-28 16:25:46 +02:00
"list_id": {
"description": "The list this task belongs to.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"percent_done": {
2019-09-21 12:52:10 +02:00
"description": "Determines how far a task is left from being done",
"type": "number"
},
2020-06-28 16:25:46 +02:00
"position": {
"description": "The position of the task - any task list can be sorted as usual by this parameter.\nWhen accessing tasks via kanban buckets, this is primarily used to sort them based on a range\nWe're using a float64 here to make it possible to put any task within any two other tasks (by changing the number).\nYou would calculate the new position between two tasks with something like task3.position = (task2.position - task1.position) / 2.\nA 64-Bit float leaves plenty of room to initially give tasks a position with 2^16 difference to the previous task\nwhich also leaves a lot of room for rearranging and sorting later.",
"type": "number"
},
"priority": {
"description": "The task priority. Can be anything you want, it is possible to sort by this later.",
"type": "integer"
},
2019-09-25 20:44:41 +02:00
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
},
2020-06-28 16:25:46 +02:00
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
"type": "array",
"items": {
2020-06-28 16:25:46 +02:00
"type": "string"
}
},
2020-06-28 16:25:46 +02:00
"repeat_after": {
"description": "An amount in seconds this task repeats itself. If this is set, when marking the task as done, it will mark itself as \"undone\" and then increase all remindes and the due date by its amount.",
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"repeat_from_current_date": {
"description": "If specified, a repeating task will repeat from the current date rather than the last set date.",
"type": "boolean"
},
"start_date": {
"description": "When this task starts.",
2020-06-28 16:25:46 +02:00
"type": "string"
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
},
2020-06-28 16:25:46 +02:00
"title": {
"description": "The task text. This is what you'll see in the list.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.TaskAssginee": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"type": "string"
},
"user_id": {
"type": "integer"
}
}
},
2019-10-16 22:52:29 +02:00
"models.TaskAttachment": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"type": "string"
2019-10-16 22:52:29 +02:00
},
"created_by": {
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2019-10-16 22:52:29 +02:00
},
"file": {
"$ref": "#/definitions/files.File"
},
"id": {
"type": "integer"
},
"task_id": {
"type": "integer"
}
}
},
"models.TaskCollection": {
"type": "object",
"properties": {
"filter_by": {
"description": "The field name of the field to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"filter_comparator": {
"description": "The comparator for field and value",
"type": "array",
"items": {
"type": "string"
}
},
"filter_concat": {
"description": "The way all filter conditions are concatenated together, can be either \"and\" or \"or\".,",
"type": "string"
},
"filter_include_nulls": {
"description": "If set to true, the result will also include null values",
"type": "boolean"
},
"filter_value": {
"description": "The value of the field name to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"order_by": {
"description": "The query parameter to order the items by. This can be either asc or desc, with asc being the default.",
"type": "array",
"items": {
"type": "string"
}
},
"sort_by": {
"description": "The query parameter to sort by. This is for ex. done, priority, etc.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
2020-06-28 16:25:46 +02:00
"models.TaskComment": {
2019-09-25 20:44:41 +02:00
"type": "object",
"properties": {
2020-06-28 16:25:46 +02:00
"author": {
"$ref": "#/definitions/user.User"
},
"comment": {
"type": "string"
},
2019-09-25 20:44:41 +02:00
"created": {
2020-06-28 16:25:46 +02:00
"type": "string"
},
"id": {
2019-09-25 20:44:41 +02:00
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"updated": {
"type": "string"
}
}
},
"models.TaskRelation": {
"type": "object",
"properties": {
"created": {
"description": "A timestamp when this label was created. You cannot change this value.",
"type": "string"
},
2019-09-25 20:44:41 +02:00
"created_by": {
"description": "The user who created this relation",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
2019-09-25 20:44:41 +02:00
},
"other_task_id": {
"description": "The ID of the other task, the task which is being related.",
"type": "integer"
},
"relation_kind": {
"description": "The kind of the relation.",
"type": "string"
},
"task_id": {
"description": "The ID of the \"base\" task, the task which has a relation to another.",
"type": "integer"
}
}
},
"models.Team": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"created_by": {
2019-01-03 23:22:06 +01:00
"description": "The user who created this team.",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The team's description.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this team.",
"type": "integer"
},
"members": {
2019-01-03 23:22:06 +01:00
"description": "An array of all members in this team.",
"type": "array",
"items": {
"$ref": "#/definitions/models.TeamUser"
}
},
"name": {
2019-01-03 23:22:06 +01:00
"description": "The name of this team.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.TeamList": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this list \u003c-\u003e team relation.",
"type": "integer"
},
"right": {
2019-01-03 23:22:06 +01:00
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
},
2020-06-28 16:25:46 +02:00
"team_id": {
2019-01-03 23:22:06 +01:00
"description": "The team id.",
"type": "integer"
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.TeamMember": {
"type": "object",
"properties": {
"admin": {
2019-01-03 23:22:06 +01:00
"description": "Whether or not the member is an admin of the team. See the docs for more about what a team admin can do",
"type": "boolean"
},
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this team member relation.",
"type": "integer"
},
"username": {
"description": "The username of the member. We use this to prevent automated user id entering.",
"type": "string"
}
}
},
"models.TeamNamespace": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this namespace \u003c-\u003e team relation.",
"type": "integer"
},
"right": {
2019-01-03 23:22:06 +01:00
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
},
2020-06-28 16:25:46 +02:00
"team_id": {
2019-01-03 23:22:06 +01:00
"description": "The team id.",
"type": "integer"
2019-01-08 20:13:07 +01:00
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
}
}
},
"models.TeamUser": {
"type": "object",
"properties": {
"admin": {
2019-01-03 23:22:06 +01:00
"description": "Whether or not the member is an admin of the team. See the docs for more about what a team admin can do",
"type": "boolean"
},
2018-11-21 16:03:47 +01:00
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
2018-11-21 16:03:47 +01:00
},
"email": {
"description": "The user's email address.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this user.",
"type": "integer"
},
2020-11-21 21:51:55 +01:00
"name": {
"description": "The full name of the user.",
"type": "string"
},
2018-11-21 16:03:47 +01:00
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
2018-11-21 16:03:47 +01:00
},
"username": {
"description": "The username of the user. Is always unique.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250,
"minLength": 1
}
}
},
"models.TeamWithRight": {
"type": "object",
"properties": {
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was created. You cannot change this value.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"created_by": {
2019-01-03 23:22:06 +01:00
"description": "The user who created this team.",
2020-06-28 16:25:46 +02:00
"$ref": "#/definitions/user.User"
},
"description": {
2019-01-03 23:22:06 +01:00
"description": "The team's description.",
"type": "string"
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this team.",
"type": "integer"
},
"members": {
2019-01-03 23:22:06 +01:00
"description": "An array of all members in this team.",
"type": "array",
"items": {
"$ref": "#/definitions/models.TeamUser"
}
},
"name": {
2019-01-03 23:22:06 +01:00
"description": "The name of this team.",
"type": "string",
"maxLength": 250,
"minLength": 1
},
"right": {
"type": "integer"
},
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"models.UserWithRight": {
"type": "object",
"properties": {
2018-11-21 16:03:47 +01:00
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
2018-11-21 16:03:47 +01:00
},
"email": {
"description": "The user's email address.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this user.",
"type": "integer"
},
2020-11-21 21:51:55 +01:00
"name": {
"description": "The full name of the user.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"right": {
2018-11-21 16:03:47 +01:00
"type": "integer"
},
2020-06-28 16:25:46 +02:00
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"username": {
"description": "The username of the user. Is always unique.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250,
"minLength": 1
}
}
},
"openid.Callback": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"scope": {
"type": "string"
}
}
},
"openid.Provider": {
"type": "object",
"properties": {
"auth_url": {
"type": "string"
},
"client_id": {
"type": "string"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"todoist.Migration": {
"type": "object",
"properties": {
"code": {
"type": "string"
}
}
},
"trello.Migration": {
"type": "object",
"properties": {
"code": {
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"user.APIUserPassword": {
"type": "object",
"properties": {
"email": {
"description": "The user's email address",
"type": "string",
"maxLength": 250
},
"id": {
"description": "The unique, numeric id of this user.",
"type": "integer"
},
"password": {
"description": "The user's password in clear text. Only used when registering the user.",
"type": "string",
"maxLength": 250,
"minLength": 8
},
"username": {
"description": "The username of the username. Is always unique.",
"type": "string",
"maxLength": 250,
"minLength": 3
}
}
},
"user.EmailConfirm": {
"type": "object",
"properties": {
"token": {
"description": "The email confirm token sent via email.",
"type": "string"
}
}
},
"user.EmailUpdate": {
"type": "object",
"properties": {
"new_email": {
"description": "The new email address. Needs to be a valid email address.",
"type": "string"
},
"password": {
"description": "The password of the user for confirmation.",
"type": "string"
}
}
},
"user.Login": {
"type": "object",
"properties": {
"password": {
2019-01-03 23:22:06 +01:00
"description": "The password for the user.",
"type": "string"
},
2020-06-28 16:25:46 +02:00
"totp_passcode": {
"description": "The totp passcode of a user. Only needs to be provided when enabled.",
"type": "string"
},
"username": {
2019-01-03 23:22:06 +01:00
"description": "The username used to log in.",
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"user.PasswordReset": {
"type": "object",
"properties": {
"new_password": {
"description": "The new password for this user.",
"type": "string"
},
"token": {
"description": "The previously issued reset token.",
"type": "string"
}
}
},
"user.PasswordTokenRequest": {
"type": "object",
"properties": {
"email": {
"type": "string",
"maxLength": 250
}
}
},
"user.TOTP": {
"type": "object",
"properties": {
2020-06-28 16:25:46 +02:00
"enabled": {
"description": "The totp entry will only be enabled after the user verified they have a working totp setup.",
"type": "boolean"
},
"secret": {
"type": "string"
},
2020-06-28 16:25:46 +02:00
"url": {
"description": "The totp url used to be able to enroll the user later",
"type": "string"
}
}
},
"user.TOTPPasscode": {
"type": "object",
"properties": {
"passcode": {
"type": "string"
}
}
},
"user.User": {
"type": "object",
"properties": {
2018-11-21 16:03:47 +01:00
"created": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
2018-11-21 16:03:47 +01:00
},
"email": {
"description": "The user's email address.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250
},
"id": {
2019-01-03 23:22:06 +01:00
"description": "The unique, numeric id of this user.",
"type": "integer"
},
2020-11-21 21:51:55 +01:00
"name": {
"description": "The full name of the user.",
"type": "string"
},
2018-11-21 16:03:47 +01:00
"updated": {
2020-06-28 16:25:46 +02:00
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
2018-11-21 16:03:47 +01:00
},
"username": {
"description": "The username of the user. Is always unique.",
2019-01-03 23:22:06 +01:00
"type": "string",
"maxLength": 250,
"minLength": 1
}
}
},
"v1.UserAvatarProvider": {
"type": "object",
"properties": {
"avatar_provider": {
2020-11-21 21:51:55 +01:00
"description": "The avatar provider. Valid types are `gravatar` (uses the user email), `upload`, `initials`, `default`.",
"type": "string"
}
}
},
"v1.UserPassword": {
2020-11-21 21:51:55 +01:00
"type": "object",
"properties": {
"new_password": {
"type": "string"
},
"old_password": {
"type": "string"
}
}
},
"v1.UserSettings": {
"type": "object",
"properties": {
"email_reminders_enabled": {
"description": "If enabled, sends email reminders of tasks to the user.",
"type": "boolean"
},
"name": {
"description": "The new name of the current user.",
"type": "string"
}
}
2019-07-16 00:54:38 +02:00
},
"v1.authInfo": {
"type": "object",
"properties": {
"local": {
"$ref": "#/definitions/v1.localAuthInfo"
},
"openid_connect": {
"$ref": "#/definitions/v1.openIDAuthInfo"
}
}
},
"v1.legalInfo": {
"type": "object",
"properties": {
"imprint_url": {
"type": "string"
},
"privacy_policy_url": {
"type": "string"
}
}
},
"v1.localAuthInfo": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"v1.openIDAuthInfo": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"providers": {
"type": "array",
"items": {
"$ref": "#/definitions/openid.Provider"
}
},
"redirect_url": {
"type": "string"
}
}
},
2019-07-16 00:54:38 +02:00
"v1.vikunjaInfos": {
"type": "object",
"properties": {
"auth": {
"$ref": "#/definitions/v1.authInfo"
},
"available_migrators": {
"type": "array",
"items": {
"type": "string"
}
},
2020-09-04 13:15:46 +02:00
"caldav_enabled": {
"type": "boolean"
},
"email_reminders_enabled": {
"type": "boolean"
},
2020-06-28 16:25:46 +02:00
"enabled_background_providers": {
"type": "array",
"items": {
"type": "string"
}
},
2019-07-16 00:54:38 +02:00
"frontend_url": {
"type": "string"
},
"legal": {
"$ref": "#/definitions/v1.legalInfo"
},
"link_sharing_enabled": {
"type": "boolean"
},
2019-10-16 22:52:29 +02:00
"max_file_size": {
2019-10-23 23:11:40 +02:00
"type": "string"
2019-10-16 22:52:29 +02:00
},
2019-07-16 00:54:38 +02:00
"motd": {
"type": "string"
},
"registration_enabled": {
"type": "boolean"
},
2020-06-28 16:25:46 +02:00
"task_attachments_enabled": {
"type": "boolean"
},
"totp_enabled": {
"type": "boolean"
},
2019-07-16 00:54:38 +02:00
"version": {
"type": "string"
}
}
},
2020-06-28 16:25:46 +02:00
"web.HTTPError": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": "string"
}
}
},
"wunderlist.Migration": {
"type": "object",
"properties": {
"code": {
"description": "Code is the code used to get a user api token",
"type": "string"
}
}
}
},
"securityDefinitions": {
2019-01-03 23:22:06 +01:00
"BasicAuth": {
"type": "basic"
},
"JWTKeyAuth": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}