Skip to content

Set default sort fields and implement pagination on list API endpoints#18

Closed
Glaisher wants to merge 6 commits intosunnah-com:masterfrom
Glaisher:master
Closed

Set default sort fields and implement pagination on list API endpoints#18
Glaisher wants to merge 6 commits intosunnah-com:masterfrom
Glaisher:master

Conversation

@Glaisher
Copy link
Member

@Glaisher Glaisher commented Jun 8, 2020

Default limit: 50
Max limit: 100

Example usage:
/v1/collections/bukhari/books/2/hadiths?limit=20&page=2

Glaisher added 6 commits June 6, 2020 21:40
Added hadithTable dump as it was missing from initial
dump so would need to import HadithTable first for this
to work properly.
Default limit: 50
Max limit: 100

Example usage:
/v1/collections/bukhari/books/2/hadiths?limit=20&page=2
Copy link
Contributor

@ahadith ahadith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please make the very minor changes in the comments and resubmit the pull request with just the last two commits? It will make for a cleaner commit history :)

main.py Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this abs(Book.ourBookID).

main.py Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's order this by Hadith.englishURN.

@Glaisher
Copy link
Member Author

Glaisher commented Jun 8, 2020

Resubmitted as #19

@Glaisher Glaisher closed this Jun 8, 2020
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.

2 participants

Comments