USACE / instrumentation

Instrumentation project issue tracking and project planning
MIT License
5 stars 1 forks source link

Add pagination params to Instrument Alert endpoints #6

Closed KevinJJackson closed 3 years ago

KevinJJackson commented 3 years ago

Add query params to allow UI to pull back n number of records at a time. This is to help resolve the slow loading times that occur on the instrument details page.

for example:

{{base_url}}/instrumentation/projects/5b6f4f37-7755-4cf9-bd02-94f1e9bc5984/instruments/a7540f69-c41e-43b3-b655-6e44097edb7e/alerts?limit=50&offset=100

where limit is the number of records returned, and offset is the starting position to pull from inclusively (ie: 100-149)

cc: @brettpalmberg

KevinJJackson commented 3 years ago

closing in favor of https://github.com/USACE/instrumentation/issues/89