Beta feature: Added keywords to filter pizza Foodish images in v1.2.0 #14
surhud004
announced in
Announcements
Replies: 1 comment 1 reply
-
Hi, Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BETA FEATURE
:Rolling out today as a beta feature, now you can filter the
pizza
category Foodish images and here's how you can achieve it:Refer to the
/images/pizza/
endpoint on the UI or via the API.Add a
?
followed bykeyword=
followed by one of the keywords listed below.You should be able to filter specific pizza images based on the keyword.
An example use-case to filter only
vegetarian
pizzas could be as follows:or if using the
/api
endpoint:While using this feature, if a new random pizza image is not being fetched, it probably means there is only one image associated with that keyword. You might want to try another keyword from the list given below.
This feature is only available on the
/images/:food
endpoint. Make sure you are referring to the correct URL path (please refer to the README).If a provided
keyword
does not match with any image, a random image will be fetched and returned as a response.Please create a new issue for new keyword requests.
List of popular available
keyword
values:vegetarian
pepperoni
margherita
pineapple
mushroom
olives
cheese
Note: Since this is a beta feature, the README docs won't be updated.
Beta Was this translation helpful? Give feedback.
All reactions