website icon indicating copy to clipboard operation
website copied to clipboard

Add Pagination to the API

Open polilluminato opened this issue 2 years ago • 1 comments

Hi everyone, I think it could be a nice idea to add in the API section an endpoint to retrieve the shows list in paginated format, something like limit and offset in SQL. I propose this change because it would be very useful in case you want to implement a list with the contents that load on a scroll and an endpoint that returns the paginated results would be very useful.

Based on the current API structure, the endpoint could look like this:

https://syntax.fm/api/shows/paginated-[offset]-[limit]

or

https://syntax.fm/api/shows/paginated?offset=[offset]&limit=[limit]

I am developing a Flutter app for a side-project that shows the list of episodes and this feature could be very useful.

polilluminato avatar Oct 29 '21 20:10 polilluminato