Following is only a suggestion. Please make any necessary changes.
Endpoint: GET http://localhost:8000/application/alert
Requirements for the API request:
- specify "last updated date" (optional) : so that all records added/updated after that can be included in the response
- specify "page" (optional) : index of the chuck
- 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:
- All three above
- Boolean value to indicated whether there are more left
- of course the alerts list