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