-
Notifications
You must be signed in to change notification settings - Fork 0
Getting recipes
There are 3 ways to get an array or one recipe. 1. Sending a Json with the ID/s of the recipes you want to have to http://localhost:3000/api/Recipe/Id. The IDs will be filtert so wrong IDs are automatically detected. Here is some example Json request:
{
"_ids": [
"qwewrq3w",
"aebeqwk",
"647268e3daa51235127c76c5",
"64739ad038c2f868e55b15bc"
]
}You will get 2 recipes back :)
2. Sending a Json with the name of the recipes to http://localhost:3000/api/Recipe/Name?name=Rezept%20f%C3%BCr%20Kuchen. The name has not to be finished but the recipe name has to contain the name you sending. You would get the same output by just writing "Rezept" or "für" or "Kuchen"
3. Sending a Json with the author in it to http://localhost:3000/api/Recipe/Author?author=yannis.e.moser%40gmail.com . You will receive all recipes from the author. At the moment it uses the E-Mail of the author but maybe in the future it will be the username.