API: Improve Swagger annotations and update swagger.json

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-30 11:50:31 +01:00
parent f2eebe2912
commit 4fe1bc0f9a
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ import (
// //
// @Summary searches the error logs and returns the results as JSON // @Summary searches the error logs and returns the results as JSON
// @Id GetErrors // @Id GetErrors
// @Tags Errors // @Tags Logs
// @Produce json // @Produce json
// @Success 200 {object} entity.Error // @Success 200 {object} entity.Error
// @Failure 401,403,429,400 {object} i18n.Response // @Failure 401,403,429,400 {object} i18n.Response
@@ -54,7 +54,7 @@ func GetErrors(router *gin.RouterGroup) {
// //
// @Summary removes all entries from the error logs // @Summary removes all entries from the error logs
// @Id DeleteErrors // @Id DeleteErrors
// @Tags Errors // @Tags Logs
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Failure 401,403,429,500 {object} i18n.Response // @Failure 401,403,429,500 {object} i18n.Response

View File

@@ -7232,7 +7232,7 @@
}, },
"summary": "removes all entries from the error logs", "summary": "removes all entries from the error logs",
"tags": [ "tags": [
"Errors" "Logs"
] ]
}, },
"get": { "get": {
@@ -7299,7 +7299,7 @@
}, },
"summary": "searches the error logs and returns the results as JSON", "summary": "searches the error logs and returns the results as JSON",
"tags": [ "tags": [
"Errors" "Logs"
] ]
} }
}, },