alexandrialibrary / Alexandria

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

Change GET /author/{name} route to actually search #52

Open hawkw opened 9 years ago

hawkw commented 9 years ago

I am not really sure what the purpose of the GET /author/name route is, since the Author response model is really just the author's name anyway. If you already have a name, why would you want to get the author response model? It would just give you that name. We should modify this route to accept query params and search by first, middle, and last, possibly doing the neighbour thing I've discussed previously.

hawkw commented 9 years ago

@redbassett, do you want to add this to the spec, or shall I?

hawkw commented 9 years ago

Alternatively this could go on another route. What does @redbassett think?