mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Improve Swagger annotations and update swagger.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user