API: Update swagger endpoint documentation

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-08-27 17:16:03 +02:00
parent e9fca94656
commit a1ea21161b
3 changed files with 6 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ import (
//
// @Summary returns the request and response headers as JSON if debug mode is enabled
// @Id Echo
// @Tags Dev
// @Tags API
// @Success 200
// @Router /api/v1/echo [get]
func Echo(router *gin.RouterGroup) {

View File

@@ -10,7 +10,7 @@ import (
//
// @Summary returns CORS headers with an empty response body
// @Id Options
// @Tags Dev
// @Tags API
// @Success 204
// @Router /api/v1/{any} [options]
func Options(router *gin.RouterGroup) {

View File

@@ -1717,7 +1717,7 @@
"/api/v1/echo": {
"get": {
"tags": [
"Dev"
"API"
],
"summary": "returns the request and response headers as JSON if debug mode is enabled",
"operationId": "Echo",
@@ -5294,7 +5294,7 @@
"/api/v1/{any}": {
"options": {
"tags": [
"Dev"
"API"
],
"summary": "returns CORS headers with an empty response body",
"operationId": "Options",
@@ -8394,19 +8394,12 @@
1000000000,
60000000000,
3600000000000,
-9223372036854775808,
9223372036854775807,
1,
1000,
1000000,
1000000000,
60000000000,
3600000000000,
1,
1000,
1000000,
1000000000,
60000000000
3600000000000
],
"x-enum-varnames": [
"minDuration",
@@ -8417,19 +8410,12 @@
"Second",
"Minute",
"Hour",
"minDuration",
"maxDuration",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"Minute",
"Hour",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"Minute"
"Hour"
]
},
"vision.ApiFormat": {