diff options
author | 2024-03-15 03:43:24 -0700 | |
---|---|---|
committer | 2024-03-15 11:43:24 +0100 | |
commit | 4a56f310472b5a5af9dfb6c0dd3306d76454c1b1 (patch) | |
tree | 85cbd7305f82283afcb8e2b70c3007a790f73e5b | |
parent | [chore] Different error message for net/mail parsing on go 1.21.8 and above (... (diff) | |
download | gotosocial-4a56f310472b5a5af9dfb6c0dd3306d76454c1b1.tar.xz |
[chore] Swagger: add missing paging params to bookmarks list (#2759)
No code changes.
-rw-r--r-- | docs/api/swagger.yaml | 14 | ||||
-rw-r--r-- | internal/api/client/bookmarks/bookmarksget.go | 22 |
2 files changed, 36 insertions, 0 deletions
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 |