Skip to content

Commit 3161469

Browse files
committed
API: Update Swagger docs of batch edit endpoint #271
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent 2229ee3 commit 3161469

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

internal/api/batch_photos_edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
// @Produce json
2424
// @Success 200 {object} batch.PhotosResponse
2525
// @Failure 400,401,403,404,429,500 {object} i18n.Response
26-
// @Param photos body batch.PhotosRequest true "photos selection and values"
26+
// @Param Request body batch.PhotosRequest true "photos selection and values"
2727
// @Router /api/v1/batch/photos/edit [post]
2828
func BatchPhotosEdit(router *gin.RouterGroup) {
2929
router.Match(MethodsPutPost, "/batch/photos/edit", func(c *gin.Context) {

internal/api/swagger.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@
13761376
"parameters": [
13771377
{
13781378
"description": "photos selection and values",
1379-
"name": "photos",
1379+
"name": "Request",
13801380
"in": "body",
13811381
"required": true,
13821382
"schema": {
@@ -8234,8 +8234,6 @@
82348234
1000000000,
82358235
60000000000,
82368236
3600000000000,
8237-
-9223372036854775808,
8238-
9223372036854775807,
82398237
1,
82408238
1000,
82418239
1000000,
@@ -8252,8 +8250,6 @@
82528250
"Second",
82538251
"Minute",
82548252
"Hour",
8255-
"minDuration",
8256-
"maxDuration",
82578253
"Nanosecond",
82588254
"Microsecond",
82598255
"Millisecond",

0 commit comments

Comments
 (0)