Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:lack of info for REST APIs #3135

Open
AYAHASSAN287 opened this issue Oct 22, 2024 · 0 comments
Open

chore:lack of info for REST APIs #3135

AYAHASSAN287 opened this issue Oct 22, 2024 · 0 comments
Labels
effort/hours Estimated to be completed in a few hours

Comments

@AYAHASSAN287
Copy link
Collaborator

Background

lack of info in REST APIs documentation [...]

Details

Accroding to the Documentation for APIs usage here
page_size flag has no default or max value despite that default value is 20 and max is 100

Acceptance criteria

default and max value shall be mentioned in the REST APIs guide for better user experience and testing

@gabrielmer gabrielmer moved this to In Progress in Waku Oct 22, 2024
@gabrielmer gabrielmer moved this from In Progress to To Do in Waku Oct 22, 2024
@gabrielmer gabrielmer added the effort/hours Estimated to be completed in a few hours label Oct 22, 2024
vishwamartur added a commit to vishwamartur/nwaku that referenced this issue Dec 14, 2024
Related to waku-org#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/hours Estimated to be completed in a few hours
Projects
Status: To Do
Development

No branches or pull requests

2 participants