simonpweller / quotes-api

An easy-to-use API for fetching programming quotes.
0 stars 3 forks source link

Add query param category #12

Closed simonpweller closed 4 years ago

simonpweller commented 4 years ago

I think it would be cool if the API supported fetching quotes from different categories.

For example by calling /random?category=programming you would get a random quote about programming. By calling /?category=movies you would get all available quotes about movies, etc.

To make this possible, we would have to give the existing quotes a new property "category" with the value "programming" and add a few quotes from other categories.