Skip to content

Commit

Permalink
[MM-57966]Centralize the 200 maximum page size cap for the per_page p…
Browse files Browse the repository at this point in the history
…arameter and remove individual mentions from API endpoint documentation (mattermost#26859)
  • Loading branch information
kaoski authored Apr 25, 2024
1 parent 173ff52 commit 5f1a357
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
3 changes: 1 addition & 2 deletions api/v4/source/bots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
default: 0
- name: per_page
in: query
description: The number of users per page. There is a maximum limit of 200 users
per page.
description: The number of users per page.
schema:
type: integer
default: 60
Expand Down
2 changes: 1 addition & 1 deletion api/v4/source/channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@
default: 0
- name: per_page
in: query
description: The number of members per page. There is a maximum limit of 200 members.
description: The number of members per page.
schema:
type: integer
default: 60
Expand Down
6 changes: 3 additions & 3 deletions api/v4/source/dataretention.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
default: 0
- name: per_page
in: query
description: The number of policies per page. There is a maximum limit of 200 per page.
description: The number of policies per page.
schema:
type: integer
default: 60
Expand Down Expand Up @@ -301,7 +301,7 @@
default: 0
- name: per_page
in: query
description: The number of teams per page. There is a maximum limit of 200 per page.
description: The number of teams per page.
schema:
type: integer
default: 60
Expand Down Expand Up @@ -495,7 +495,7 @@
default: 0
- name: per_page
in: query
description: The number of channels per page. There is a maximum limit of 200 per page.
description: The number of channels per page.
schema:
type: integer
default: 60
Expand Down
3 changes: 3 additions & 0 deletions api/v4/source/introduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ tags:
When using endpoints that require a user id, the string `me` can be used in place of the user id to indicate the action is to be taken for the logged in user.
For all endpoints that implement pagination via the `per_page` parameter, the maximum number of items returned per request is capped at 200. If `per_page` exceeds 200, the list will be silently truncated to 200 items.
- name: drivers
description: >
The easiest way to interact with the Mattermost Web Service API is through
Expand Down
2 changes: 1 addition & 1 deletion api/v4/source/ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
default: 0
- name: per_page
in: query
description: The number of users per page. There is a maximum limit of 200 users
description: The number of users per page.
per page.
schema:
type: integer
Expand Down
10 changes: 4 additions & 6 deletions api/v4/source/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@
default: 0
- name: per_page
in: query
description: The number of users per page. There is a maximum limit of 200 users
per page.
description: The number of users per page.
schema:
type: integer
default: 60
Expand Down Expand Up @@ -3140,7 +3139,7 @@
default: 0
- name: per_page
in: query
description: The number of policies per page. There is a maximum limit of 200 per page.
description: The number of policies per page.
schema:
type: integer
default: 60
Expand Down Expand Up @@ -3190,7 +3189,7 @@
default: 0
- name: per_page
in: query
description: The number of policies per page. There is a maximum limit of 200 per page.
description: The number of policies per page.
schema:
type: integer
default: 60
Expand Down Expand Up @@ -3233,8 +3232,7 @@
default: 0
- name: per_page
in: query
description: The number of users per page. There is a maximum limit of 200 users
per page.
description: The number of users per page.
schema:
type: integer
default: 60
Expand Down

0 comments on commit 5f1a357

Please sign in to comment.