mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
API: Update swagger endpoint documentation
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
@@ -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": {
|
||||
|
Reference in New Issue
Block a user