Skip to content

Conversation

@Ivansete-status
Copy link
Collaborator

Orignal PR: #3210
Original author: @vishwamartur

The original PR got abruptly closed after a deep cleanup and refactor applied by this on 2025-09-30


Related to #3135

Update REST APIs documentation to include default and max values for page_size flag

  • Client Code Changes

    • Update getStoreMessagesV3 function in waku/waku_api/rest/store/client.nim to set the default value of page_size to 20.
  • Handler Code Changes

    • Update installStoreApiHandlers procedure in waku/waku_api/rest/store/handlers.nim to enforce the default value of page_size to 20.
    • Enforce the max value of page_size to 100 in installStoreApiHandlers procedure.
  • Documentation Changes

    • Add a note in docs/api/rest-api.md mentioning the default value of page_size is 20 and the max value is 100.
    • Add a note in docs/operators/how-to/configure-rest-api.md mentioning the default value of page_size is 20 and the max value is 100.

Related to #3135

Update REST APIs documentation to include default and max values for `page_size` flag

* **Client Code Changes**
  - Update `getStoreMessagesV3` function in `waku/waku_api/rest/store/client.nim` to set the default value of `page_size` to 20.

* **Handler Code Changes**
  - Update `installStoreApiHandlers` procedure in `waku/waku_api/rest/store/handlers.nim` to enforce the default value of `page_size` to 20.
  - Enforce the max value of `page_size` to 100 in `installStoreApiHandlers` procedure.

* **Documentation Changes**
  - Add a note in `docs/api/rest-api.md` mentioning the default value of `page_size` is 20 and the max value is 100.
  - Add a note in `docs/operators/how-to/configure-rest-api.md` mentioning the default value of `page_size` is 20 and the max value is 100.
…ult and max values for `page_size`

* Set default value of `page_size` to 20 and max value to 100 in `getStoreMessagesV3` function in `waku/waku_api/rest/store/client.nim`
* Enforce default value of `page_size` to 20 and max value to 100 in `installStoreApiHandlers` procedure in `waku/waku_api/rest/store/handlers.nim`
* Add notes in `docs/api/rest-api.md` and `docs/operators/how-to/configure-rest-api.md` mentioning the default and max values for `page_size`
@Ivansete-status Ivansete-status self-assigned this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants