Task Attachments #104

Merged
konrad merged 63 commits from feature/attachments into master 2019-10-16 20:52:31 +00:00
3 changed files with 79 additions and 22 deletions
Showing only changes of commit ec33e7c2ee - Show all commits

View File

@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-10-14 00:24:42.889076024 +0200 CEST m=+0.108159493
// 2019-10-14 22:46:05.9838707 +0200 CEST m=+0.157234506
package swagger
@ -395,7 +395,7 @@ var doc = `{
"JWTKeyAuth": []
}
],
"description": "Returns a team by its ID.",
"description": "Returns a list by its ID.",
"consumes": [
"application/json"
],
@ -403,13 +403,13 @@ var doc = `{
"application/json"
],
"tags": [
"team"
"list"
],
"summary": "Gets one team",
"summary": "Gets one list",
"parameters": [
{
"type": "integer",
"description": "Team ID",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
@ -417,13 +417,13 @@ var doc = `{
],
"responses": {
"200": {
"description": "The team",
"description": "The list",
"schema": {
"$ref": "#/definitions/models.Team"
"$ref": "#/definitions/models.List"
}
},
"403": {
"description": "The user does not have access to the team",
"description": "The user does not have access to the list",
"schema": {
"$ref": "#/definitions/code.vikunja.io.web.HTTPError"
}
@ -4261,6 +4261,13 @@ var doc = `{
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"
@ -4674,6 +4681,13 @@ var doc = `{
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"
@ -4775,6 +4789,13 @@ var doc = `{
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"

View File

@ -377,7 +377,7 @@
"JWTKeyAuth": []
}
],
"description": "Returns a team by its ID.",
"description": "Returns a list by its ID.",
"consumes": [
"application/json"
],
@ -385,13 +385,13 @@
"application/json"
],
"tags": [
"team"
"list"
],
"summary": "Gets one team",
"summary": "Gets one list",
"parameters": [
{
"type": "integer",
"description": "Team ID",
"description": "List ID",
"name": "id",
"in": "path",
"required": true
@ -399,13 +399,13 @@
],
"responses": {
"200": {
"description": "The team",
"description": "The list",
"schema": {
"$ref": "#/definitions/models.Team"
"$ref": "#/definitions/models.List"
}
},
"403": {
"description": "The user does not have access to the team",
"description": "The user does not have access to the list",
"schema": {
"$ref": "#/definitions/code.vikunja.io/web.HTTPError"
}
@ -4242,6 +4242,13 @@
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"
@ -4655,6 +4662,13 @@
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"
@ -4756,6 +4770,13 @@
"$ref": "#/definitions/models.User"
}
},
"attachments": {
"description": "All attachments this task has",
"type": "array",
"items": {
"$ref": "#/definitions/models.TaskAttachment"
}
},
"created": {
"description": "A unix timestamp when this task was created. You cannot change this value.",
"type": "integer"

View File

@ -49,6 +49,11 @@ definitions:
items:
$ref: '#/definitions/models.User'
type: array
attachments:
description: All attachments this task has
items:
$ref: '#/definitions/models.TaskAttachment'
type: array
created:
description: A unix timestamp when this task was created. You cannot change
this value.
@ -378,6 +383,11 @@ definitions:
items:
$ref: '#/definitions/models.User'
type: array
attachments:
description: All attachments this task has
items:
$ref: '#/definitions/models.TaskAttachment'
type: array
created:
description: A unix timestamp when this task was created. You cannot change
this value.
@ -460,6 +470,11 @@ definitions:
items:
$ref: '#/definitions/models.User'
type: array
attachments:
description: All attachments this task has
items:
$ref: '#/definitions/models.TaskAttachment'
type: array
created:
description: A unix timestamp when this task was created. You cannot change
this value.
@ -1110,9 +1125,9 @@ paths:
get:
consumes:
- application/json
description: Returns a team by its ID.
description: Returns a list by its ID.
parameters:
- description: Team ID
- description: List ID
in: path
name: id
required: true
@ -1121,11 +1136,11 @@ paths:
- application/json
responses:
"200":
description: The team
description: The list
schema:
$ref: '#/definitions/models.Team'
$ref: '#/definitions/models.List'
"403":
description: The user does not have access to the team
description: The user does not have access to the list
schema:
$ref: '#/definitions/code.vikunja.io/web.HTTPError'
"500":
@ -1134,9 +1149,9 @@ paths:
$ref: '#/definitions/models.Message'
security:
- JWTKeyAuth: []
summary: Gets one team
summary: Gets one list
tags:
- team
- list
post:
consumes:
- application/json