[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2026-04-05 10:05:20 +00:00
parent 297c0c1d8b
commit 23d9cbc664
3 changed files with 94 additions and 0 deletions

View File

@ -6118,6 +6118,41 @@ const docTemplate = `{
}
}
},
"/test/all": {
"delete": {
"description": "Removes all data from every Vikunja table. Used by e2e tests to ensure clean state before each test. Requires the testing token.",
"produces": [
"application/json"
],
"tags": [
"testing"
],
"summary": "Truncate all tables",
"responses": {
"200": {
"description": "All tables truncated.",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/test/{table}": {
"patch": {
"description": "Fills the specified table with the content provided in the payload. You need to enable the testing endpoint before doing this and provide the ` + "`" + `Authorization: \u003ctoken\u003e` + "`" + ` secret when making requests to this endpoint. See docs for more details.",

View File

@ -6110,6 +6110,41 @@
}
}
},
"/test/all": {
"delete": {
"description": "Removes all data from every Vikunja table. Used by e2e tests to ensure clean state before each test. Requires the testing token.",
"produces": [
"application/json"
],
"tags": [
"testing"
],
"summary": "Truncate all tables",
"responses": {
"200": {
"description": "All tables truncated.",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/test/{table}": {
"patch": {
"description": "Fills the specified table with the content provided in the payload. You need to enable the testing endpoint before doing this and provide the `Authorization: \u003ctoken\u003e` secret when making requests to this endpoint. See docs for more details.",

View File

@ -5805,6 +5805,30 @@ paths:
summary: Reset the db to a defined state
tags:
- testing
/test/all:
delete:
description: Removes all data from every Vikunja table. Used by e2e tests to
ensure clean state before each test. Requires the testing token.
produces:
- application/json
responses:
"200":
description: All tables truncated.
schema:
additionalProperties:
type: string
type: object
"403":
description: Forbidden
schema:
$ref: '#/definitions/web.HTTPError'
"500":
description: Internal server error.
schema:
$ref: '#/definitions/models.Message'
summary: Truncate all tables
tags:
- testing
/tokens:
get:
consumes: