From f2eebe2912e35063259e2a94bc75f47b3818256e Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 30 Oct 2025 11:47:40 +0100 Subject: [PATCH] API: Improve Swagger annotations and update swagger.json Signed-off-by: Michael Mayer --- internal/api/docs.go | 2 +- internal/api/feedback.go | 2 +- internal/api/server.go | 2 +- internal/api/swagger.json | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/api/docs.go b/internal/api/docs.go index 0ed9078bd..09ac2f652 100644 --- a/internal/api/docs.go +++ b/internal/api/docs.go @@ -23,7 +23,7 @@ var swaggerJSON []byte // // @Summary serves embedded Swagger documentation (debug builds only) // @Id GetDocs -// @Tags System +// @Tags Debug // @Produce json // @Success 200 {object} gin.H "Swagger JSON" // @Router /swagger.json [get] diff --git a/internal/api/feedback.go b/internal/api/feedback.go index 69ffa9309..aa09059da 100644 --- a/internal/api/feedback.go +++ b/internal/api/feedback.go @@ -15,7 +15,7 @@ import ( // // @Summary allows members to submit a feedback message to the PhotoPrism team // @Id SendFeedback -// @Tags Admin +// @Tags Internal // @Produce json // @Success 200 {object} form.Feedback // @Failure 400,401,403 {object} i18n.Response diff --git a/internal/api/server.go b/internal/api/server.go index 9602a8957..872cef4b9 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -15,7 +15,7 @@ import ( // // @Summary allows authorized admins to restart the server // @Id StopServer -// @Tags Admin +// @Tags Internal // @Produce json // @Success 200 {object} config.Options // @Failure 401,403 {object} i18n.Response diff --git a/internal/api/swagger.json b/internal/api/swagger.json index bf364cdaa..e5c0b29fd 100644 --- a/internal/api/swagger.json +++ b/internal/api/swagger.json @@ -7568,7 +7568,7 @@ }, "summary": "allows members to submit a feedback message to the PhotoPrism team", "tags": [ - "Admin" + "Internal" ] } }, @@ -10079,7 +10079,7 @@ }, "summary": "allows authorized admins to restart the server", "tags": [ - "Admin" + "Internal" ] } }, @@ -12674,7 +12674,7 @@ }, "summary": "serves embedded Swagger documentation (debug builds only)", "tags": [ - "System" + "Debug" ] } },