mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
[chore] Swagger: add missing paging params to bookmarks list (#2759)
No code changes.
This commit is contained in:
parent
15578835a8
commit
4a56f31047
2 changed files with 36 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue