mirror of
1
Fork 0

[chore] Swagger: add missing paging params to bookmarks list (#2759)

No code changes.
This commit is contained in:
Vyr Cossont 2024-03-15 03:43:24 -07:00 committed by GitHub
parent 15578835a8
commit 4a56f31047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

View File

@ -5177,6 +5177,20 @@ paths:
get: get:
description: Get an array of statuses bookmarked in the instance description: Get an array of statuses bookmarked in the instance
operationId: bookmarksGet 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: produces:
- application/json - application/json
responses: responses:

View File

@ -53,6 +53,28 @@ const (
// - OAuth2 Bearer: // - OAuth2 Bearer:
// - read:bookmarks // - 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: // responses:
// '200': // '200':
// description: Array of bookmarked statuses // description: Array of bookmarked statuses