alexandrialibrary / Alexandria

Alexandria is a simple little card catalogue webapp with a terribly pretentious name.
MIT License
2 stars 1 forks source link

Add API queries for sorting the list of books #44

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

One of the key user stories for Borges is "the list of books can be sorted".

I believe we've decided that sorting will happen on the backend for reasons including "performance", "it's already implemented", and "taking advantage of Hawk's titanic and frightening intellect". Therefore, we need to add some way to request a sorted list of books from the backend to our API. I'm assuming this would be in the form of query parameters to the GET /books/ route.

Similar parameters could easily be added to GET /authors for last name/first name sorting.

hawkw commented 9 years ago

I'm assigning this to @redbassett since the API spec has kind of become his deal.

hawkw commented 9 years ago

Other reasons we'll probably want to handle sorting on the backend: I already handle name-munging for books (dropping "The" from the front of the title), and the date sorting ideas discussed in #48.