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

Data limitation request #20

Open
FilipAben opened this issue Mar 26, 2019 · 3 comments
Open

Data limitation request #20

FilipAben opened this issue Mar 26, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@FilipAben
Copy link
Collaborator

FilipAben commented Mar 26, 2019

Problem
We would like to have the option to curtail a request for data if this would generate an excessive amount of data.

Describe the solution you'd like
A way of informing the requesting party that only part of the requested data was returned and that additional requests should be made to retrieve the remaining data.
Additionally we should be able to rate-limit requests for protection purposes. http status codes + quota http headers could achieve this.

@nickdickinson nickdickinson self-assigned this Mar 29, 2019
@nickdickinson nickdickinson added the enhancement New feature or request label Mar 29, 2019
@nickdickinson
Copy link
Collaborator

Paging is a norm in the REST API space with a custom link to an endpoint at the end of the response data to get the next page of data. According to the documentation the pages should be limited to 8 kB. Shall we add a paging structure to the API response format? "This documentation aims to account for the speed of the system as a whole by limiting the resource response of a data requests to about 8 kB. For more information see specific API calls." - wiki

@FilipAben
Copy link
Collaborator Author

Yes, that would be good.

@Stroomversnelling
Copy link
Owner

Nick recommends (not yet documented in YAML) is to have this added to each response:

{total_pages: 4, current_page: 2, previous_page: https://someurl/api/random_page_url, next_page: https://someurl/api/random_page_url}

The page urls are used to fetch the next page of data or previous page. It is also possible to add first and last urls for jumping to the start or end of timeseries for example. By default the first page is always returned.

@nickdickinson nickdickinson removed their assignment Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants