From 7820bb1ffdffc4a834d3029a67170131b9f12d5d Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Tue, 7 Apr 2026 12:22:00 +0000 Subject: [PATCH] [skip ci] Updated swagger docs --- pkg/swagger/docs.go | 76 +++++++++++++++++++++++++++++++++++++++- pkg/swagger/swagger.json | 76 +++++++++++++++++++++++++++++++++++++++- pkg/swagger/swagger.yaml | 51 ++++++++++++++++++++++++++- 3 files changed, 200 insertions(+), 3 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index d81185fec..0d7ce800f 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -873,7 +873,7 @@ const docTemplate = `{ } }, "/migration/ticktick/migrate": { - "post": { + "put": { "security": [ { "JWTKeyAuth": [] @@ -1234,6 +1234,80 @@ const docTemplate = `{ } } }, + "/migration/wekan/migrate": { + "put": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "description": "Imports all projects, tasks, labels, checklists, and comments from a WeKan board JSON export into Vikunja.", + "consumes": [ + "application/x-www-form-urlencoded" + ], + "produces": [ + "application/json" + ], + "tags": [ + "migration" + ], + "summary": "Import all projects, tasks etc. from a WeKan board export", + "parameters": [ + { + "type": "string", + "description": "The WeKan board JSON export file.", + "name": "import", + "in": "formData", + "required": true + } + ], + "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/wekan/status": { + "get": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "description": "Returns if the current user already did the migration 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" + } + } + } + } + }, "/notifications": { "get": { "security": [ diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 2e470535d..022d0a275 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -865,7 +865,7 @@ } }, "/migration/ticktick/migrate": { - "post": { + "put": { "security": [ { "JWTKeyAuth": [] @@ -1226,6 +1226,80 @@ } } }, + "/migration/wekan/migrate": { + "put": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "description": "Imports all projects, tasks, labels, checklists, and comments from a WeKan board JSON export into Vikunja.", + "consumes": [ + "application/x-www-form-urlencoded" + ], + "produces": [ + "application/json" + ], + "tags": [ + "migration" + ], + "summary": "Import all projects, tasks etc. from a WeKan board export", + "parameters": [ + { + "type": "string", + "description": "The WeKan board JSON export file.", + "name": "import", + "in": "formData", + "required": true + } + ], + "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/wekan/status": { + "get": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "description": "Returns if the current user already did the migration 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" + } + } + } + } + }, "/notifications": { "get": { "security": [ diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 85d087767..f1bfadf51 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -2270,7 +2270,7 @@ paths: tags: - migration /migration/ticktick/migrate: - post: + put: consumes: - application/x-www-form-urlencoded description: Imports all projects, tasks, notes, reminders, subtasks and files @@ -2509,6 +2509,55 @@ paths: summary: Get migration status tags: - migration + /migration/wekan/migrate: + put: + consumes: + - application/x-www-form-urlencoded + description: Imports all projects, tasks, labels, checklists, and comments from + a WeKan board JSON export into Vikunja. + parameters: + - description: The WeKan board JSON export file. + in: formData + name: import + required: true + type: string + produces: + - application/json + 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' + security: + - JWTKeyAuth: [] + summary: Import all projects, tasks etc. from a WeKan board export + tags: + - migration + /migration/wekan/status: + get: + description: Returns if the current user already did the migration 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 + responses: + "200": + description: The migration status + schema: + $ref: '#/definitions/migration.Status' + "500": + description: Internal server error + schema: + $ref: '#/definitions/models.Message' + security: + - JWTKeyAuth: [] + summary: Get migration status + tags: + - migration /notifications: get: consumes: