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

display total number of pages and results in the meta section of an API call #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

narzeja
Copy link

@narzeja narzeja commented Sep 20, 2014

Some Flask API frameworks, such as Flask-Restless, currently report total number of pages on each API call. In my projects, I sometimes find myself wanting this information readily available on each API call, in addition with the total number of available results. Especially when I build frontends that pulls data directly from my APIs.

This pull-requests extends the Meta field of all API calls with 'num_pages' and 'num_results', reporting total number of pages and total number of results available for that particular API call.

Tests are changed accordingly and all run successfully.

Documentation changed accordingly.

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

Successfully merging this pull request may close these issues.

1 participant