[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2026-04-07 12:22:00 +00:00
parent e40877cca1
commit 7820bb1ffd
3 changed files with 200 additions and 3 deletions

View File

@ -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": [

View File

@ -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": [

View File

@ -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: