Closed hawkw closed 9 years ago
I'm assigning this to @redbassett since the API spec has kind of become his deal.
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.
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.