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

[Spring] Create an endpoint to get alerts with pagination #136

Open
suksw opened this issue Apr 17, 2020 · 0 comments
Open

[Spring] Create an endpoint to get alerts with pagination #136

suksw opened this issue Apr 17, 2020 · 0 comments

Comments

@suksw
Copy link
Collaborator

suksw commented Apr 17, 2020

Following is only a suggestion. Please make any necessary changes.

Endpoint: GET http://localhost:8000/application/alert

Requirements for the API request:

  1. specify "last updated date" (optional) : so that all records added/updated after that can be included in the response
  2. specify "page" (optional) : index of the chuck
  3. specify "page size" (optional): the number of alerts to be returned

If none of the above are given we could return the a "max_page_size" response where the "page" is 1.

Requirements for the API response:

  1. All three above
  2. Boolean value to indicated whether there are more left
  3. of course the alerts list
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

No branches or pull requests

1 participant