Skip to content

Commit

Permalink
Add missing pagination headers docs for collections (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
vermaxik authored Feb 28, 2024
1 parent 5767549 commit f97122c
Show file tree
Hide file tree
Showing 54 changed files with 325 additions and 0 deletions.
193 changes: 193 additions & 0 deletions doc/compiled.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions headers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,31 @@ X-Rate-Limit-Reset:
description: The number of seconds left in the current period
schema:
type: integer
Pagination:
description: Pagination details for navigating through a collection of resources, provided in JSON format.
schema:
type: object
properties:
total_count:
description: Total count of items in the collection.
type: integer
example: 10
total_pages_count:
description: Total number of pages available for the collection.
type: integer
example: 2
current_page:
description: The current page number.
type: integer
example: 1
current_per_page:
description: Number of items currently displayed per page.
type: integer
example: 5
previous_page:
description: Page number of the previous page, if available.
type: integer
next_page:
description: Page number of the next page, if available.
type: integer
example: 2
2 changes: 2 additions & 0 deletions paths/accounts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/accounts/locales.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/authorizations/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/bitbucket_syncs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/blacklisted_keys/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/branches/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/comment_reactions/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'403':
Expand Down
2 changes: 2 additions & 0 deletions paths/comment_replies/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'403':
Expand Down
2 changes: 2 additions & 0 deletions paths/comments/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/custom_metadata_properties/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/distributions/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/documents/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/figma_attachments/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
"400":
"$ref": "../../responses.yaml#/400"
"404":
Expand Down
2 changes: 2 additions & 0 deletions paths/formats/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/gitlab_syncs/history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/gitlab_syncs/import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/gitlab_syncs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/glossaries/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/glossary_terms/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/invitations/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'401':
Expand Down
2 changes: 2 additions & 0 deletions paths/job_comments/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/job_locales/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/job_template_locales/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/job_templates/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
"400":
"$ref": "../../responses.yaml#/400"
"404":
Expand Down
2 changes: 2 additions & 0 deletions paths/jobs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/jobs/index_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/keys/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/locales/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/members/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'401':
Expand Down
2 changes: 2 additions & 0 deletions paths/notification_groups/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/notifications/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/orders/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/organization_job_template_locales/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/organization_job_templates/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
"400":
"$ref": "../../responses.yaml#/400"
"404":
Expand Down
2 changes: 2 additions & 0 deletions paths/projects/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/releases/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/screenshot_markers/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/screenshots/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/spaces/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
2 changes: 2 additions & 0 deletions paths/spaces/spaces_projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ responses:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
Link:
"$ref": "../../headers.yaml#/Link"
Pagination:
"$ref": "../../headers.yaml#/Pagination"
'400':
"$ref": "../../responses.yaml#/400"
'404':
Expand Down
Loading

0 comments on commit f97122c

Please sign in to comment.