diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 5401cd918..a10a4ebb4 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -1414,6 +1414,12 @@ const docTemplate = `{ "description": "If true, also returns all archived projects.", "name": "is_archived", "in": "query" + }, + { + "type": "string", + "description": "If set to ` + "`" + `rights` + "`" + `, Vikunja will return the max right the current user has on this project. You can currently only set this to ` + "`" + `rights` + "`" + `.", + "name": "expand", + "in": "query" } ], "responses": { @@ -8265,6 +8271,9 @@ const docTemplate = `{ "description": "True if a project is a favorite. Favorite projects show up in a separate parent project. This value depends on the user making the call to the api.", "type": "boolean" }, + "max_right": { + "$ref": "#/definitions/models.Right" + }, "owner": { "description": "The user who created this project.", "allOf": [ diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index bbcc117ec..1a0356a6d 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -1406,6 +1406,12 @@ "description": "If true, also returns all archived projects.", "name": "is_archived", "in": "query" + }, + { + "type": "string", + "description": "If set to `rights`, Vikunja will return the max right the current user has on this project. You can currently only set this to `rights`.", + "name": "expand", + "in": "query" } ], "responses": { @@ -8257,6 +8263,9 @@ "description": "True if a project is a favorite. Favorite projects show up in a separate parent project. This value depends on the user making the call to the api.", "type": "boolean" }, + "max_right": { + "$ref": "#/definitions/models.Right" + }, "owner": { "description": "The user who created this project.", "allOf": [ diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 8a3d933d2..974d25abc 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -445,6 +445,8 @@ definitions: a separate parent project. This value depends on the user making the call to the api. type: boolean + max_right: + $ref: '#/definitions/models.Right' owner: allOf: - $ref: '#/definitions/user.User' @@ -2663,6 +2665,11 @@ paths: in: query name: is_archived type: boolean + - description: If set to `rights`, Vikunja will return the max right the current + user has on this project. You can currently only set this to `rights`. + in: query + name: expand + type: string produces: - application/json responses: