API: Update swagger endpoint documentation

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-08-27 17:08:06 +02:00
parent 2e15e1868f
commit e9fca94656
3 changed files with 21 additions and 15 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 Other
// @Tags Dev
// @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 Other
// @Tags Dev
// @Success 204
// @Router /api/v1/{any} [options]
func Options(router *gin.RouterGroup) {

View File

@@ -1717,7 +1717,7 @@
"/api/v1/echo": {
"get": {
"tags": [
"Other"
"Dev"
],
"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": [
"Other"
"Dev"
],
"summary": "returns CORS headers with an empty response body",
"operationId": "Options",
@@ -8394,18 +8394,29 @@
1000000000,
60000000000,
3600000000000,
1,
1000,
1000000,
1000000000,
-9223372036854775808,
9223372036854775807,
1,
1000,
1000000,
1000000000,
60000000000,
3600000000000
3600000000000,
1,
1000,
1000000,
1000000000,
60000000000
],
"x-enum-varnames": [
"minDuration",
"maxDuration",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"Minute",
"Hour",
"minDuration",
"maxDuration",
"Nanosecond",
@@ -8418,12 +8429,7 @@
"Microsecond",
"Millisecond",
"Second",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"Minute",
"Hour"
"Minute"
]
},
"vision.ApiFormat": {