From 4a56f310472b5a5af9dfb6c0dd3306d76454c1b1 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Fri, 15 Mar 2024 03:43:24 -0700 Subject: [PATCH] [chore] Swagger: add missing paging params to bookmarks list (#2759) No code changes. --- docs/api/swagger.yaml | 14 ++++++++++++ internal/api/client/bookmarks/bookmarksget.go | 22 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index ad23d9e84..51d8b6e78 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -5177,6 +5177,20 @@ paths: get: description: Get an array of statuses bookmarked in the instance operationId: bookmarksGet + parameters: + - default: 30 + description: Number of statuses to return. + in: query + name: limit + type: integer + - description: Return only bookmarked statuses *OLDER* than the given bookmark ID. The status with the corresponding bookmark ID will not be included in the response. + in: query + name: max_id + type: string + - description: Return only bookmarked statuses *NEWER* than the given bookmark ID. The status with the corresponding bookmark ID will not be included in the response. + in: query + name: min_id + type: string produces: - application/json responses: diff --git a/internal/api/client/bookmarks/bookmarksget.go b/internal/api/client/bookmarks/bookmarksget.go index 17808642c..e6489c405 100644 --- a/internal/api/client/bookmarks/bookmarksget.go +++ b/internal/api/client/bookmarks/bookmarksget.go @@ -53,6 +53,28 @@ const ( // - OAuth2 Bearer: // - read:bookmarks // +// parameters: +// - +// name: limit +// type: integer +// description: Number of statuses to return. +// default: 30 +// in: query +// - +// name: max_id +// type: string +// description: >- +// Return only bookmarked statuses *OLDER* than the given bookmark ID. +// The status with the corresponding bookmark ID will not be included in the response. +// in: query +// - +// name: min_id +// type: string +// description: >- +// Return only bookmarked statuses *NEWER* than the given bookmark ID. +// The status with the corresponding bookmark ID will not be included in the response. +// in: query +// // responses: // '200': // description: Array of bookmarked statuses