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
[Feature Request] Extend API to enable pagination in UI #392
Comments
With the |
After rethinking this, we want to go a different way
Instead, we should:
And also
|
Relevant branch: |
🔴 From the client: >>> len(client.organization.list(per_page=2)['data'])
Making request: GET | http://localhost:5000/api/organization | {'page': None, 'per_page': 2, 'name': None, 'country': None, 'collaboration_id': None}
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "GET /api/organization?per_page=2 HTTP/1.1" 200 5562
6 A more basic requests yields the same: >>> len(client.request('organization', params={'per_page':2})['data'])
Making request: GET | http://localhost:5000/api/organization | {'per_page': 2}
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "GET /api/organization?per_page=2 HTTP/1.1" 200 5562
6 Version: 4.0.0a7 |
Interestingly enough this does work for the |
Problem description
We would like to use pagination in the UI to make everything go a lot faster, but we're missing some things on the API to make that change. This should be included in v4.
Features that we definitely need:
include
argument where you include complete resources. E.g./node?include=collaboration,organization
should yield the node with inside the full json of the organization and collaboration. (Note that this could lead to difficult authorization checks)count
option to get the total number of resources without needing to get them all fullyWe should consider if these are all necessary features, or if there are more
The text was updated successfully, but these errors were encountered: