Use the username instead of a user when adding a user to a team or giving it rights (#76)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2019-05-22 19:24:37.734465408 +0200 CEST m=+0.660846954
|
||||
// 2019-05-25 11:35:41.214134069 +0200 CEST m=+0.124896065
|
||||
|
||||
package swagger
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
var doc = `{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "\u003c!-- ReDoc-Inject: \u003csecurity-definitions\u003e --\u003e",
|
||||
"description": "This is the documentation for the [Vikunja](http://vikunja.io) API. Vikunja is a cross-plattform Todo-application with a lot of features, such as sharing lists with users or teams. \u003c!-- ReDoc-Inject: \u003csecurity-definitions\u003e --\u003e\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",
|
||||
"contact": {
|
||||
"name": "General Vikunja contact",
|
||||
@ -3984,9 +3984,9 @@ var doc = `{
|
||||
"description": "A unix timestamp when this relation was last updated. You cannot change this value.",
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The user id.",
|
||||
"type": "integer"
|
||||
"username": {
|
||||
"description": "The username.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4054,8 +4054,8 @@ var doc = `{
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The user id.",
|
||||
"type": "integer"
|
||||
"description": "The username.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4203,9 +4203,9 @@ var doc = `{
|
||||
"description": "The unique, numeric id of this team member relation.",
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The id of the member.",
|
||||
"type": "integer"
|
||||
"username": {
|
||||
"description": "The username of the member. We use this to prevent automated user id entering.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "\u003c!-- ReDoc-Inject: \u003csecurity-definitions\u003e --\u003e",
|
||||
"description": "This is the documentation for the [Vikunja](http://vikunja.io) API. Vikunja is a cross-plattform Todo-application with a lot of features, such as sharing lists with users or teams. \u003c!-- ReDoc-Inject: \u003csecurity-definitions\u003e --\u003e\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",
|
||||
"contact": {
|
||||
"name": "General Vikunja contact",
|
||||
@ -3970,9 +3970,9 @@
|
||||
"description": "A unix timestamp when this relation was last updated. You cannot change this value.",
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The user id.",
|
||||
"type": "integer"
|
||||
"username": {
|
||||
"description": "The username.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4040,8 +4040,8 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The user id.",
|
||||
"type": "integer"
|
||||
"description": "The username.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4189,9 +4189,9 @@
|
||||
"description": "The unique, numeric id of this team member relation.",
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"description": "The id of the member.",
|
||||
"type": "integer"
|
||||
"username": {
|
||||
"description": "The username of the member. We use this to prevent automated user id entering.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -312,9 +312,9 @@ definitions:
|
||||
description: A unix timestamp when this relation was last updated. You cannot
|
||||
change this value.
|
||||
type: integer
|
||||
userID:
|
||||
description: The user id.
|
||||
type: integer
|
||||
username:
|
||||
description: The username.
|
||||
type: string
|
||||
type: object
|
||||
models.Message:
|
||||
properties:
|
||||
@ -369,8 +369,8 @@ definitions:
|
||||
change this value.
|
||||
type: integer
|
||||
userID:
|
||||
description: The user id.
|
||||
type: integer
|
||||
description: The username.
|
||||
type: string
|
||||
type: object
|
||||
models.NamespaceWithLists:
|
||||
properties:
|
||||
@ -487,9 +487,10 @@ definitions:
|
||||
id:
|
||||
description: The unique, numeric id of this team member relation.
|
||||
type: integer
|
||||
userID:
|
||||
description: The id of the member.
|
||||
type: integer
|
||||
username:
|
||||
description: The username of the member. We use this to prevent automated
|
||||
user id entering.
|
||||
type: string
|
||||
type: object
|
||||
models.TeamNamespace:
|
||||
properties:
|
||||
@ -651,7 +652,13 @@ info:
|
||||
email: hello@vikunja.io
|
||||
name: General Vikunja contact
|
||||
url: http://vikunja.io/en/contact/
|
||||
description: '<!-- ReDoc-Inject: <security-definitions> -->'
|
||||
description: |-
|
||||
This is the documentation for the [Vikunja](http://vikunja.io) API. Vikunja is a cross-plattform Todo-application with a lot of features, such as sharing lists with users or teams. <!-- ReDoc-Inject: <security-definitions> -->
|
||||
# Authorization
|
||||
**JWT-Auth:** Main authorization method, used for most of the requests. Needs ` + "`" + `Authorization: Bearer <jwt-token>` + "`" + `-header to authenticate successfully.
|
||||
|
||||
**BasicAuth:** Only used when requesting tasks via caldav.
|
||||
<!-- ReDoc-Inject: <security-definitions> -->
|
||||
license:
|
||||
name: GPLv3
|
||||
url: http://code.vikunja.io/api/src/branch/master/LICENSE
|
||||
|
Reference in New Issue
Block a user