Pets-without-names / Jax-Pet-Names

This project is a collaboration designed to create a pet naming web application.
MIT License
3 stars 2 forks source link

Add is_male filter and randomizer #9

Closed murjax closed 1 year ago

murjax commented 1 year ago
  1. Add randomizer to index query. Limit to one result. Note: this is still an array, even though there's only one result. This makes it easy to scale in case we want say 5 or more random results later.
  2. Add is_male filter to index query. true is male, false is female.

Endpoint is now consumed like so: