feat: Added recipes/requirements route

- feat: Added requirements route to allow clients to access the requirements fulfilments of recipes
This commit is contained in:
grocy
2019-06-20 23:10:30 -05:00
parent a9c0539305
commit 7a51fb77b0
3 changed files with 3181 additions and 2687 deletions

View File

@@ -156,6 +156,8 @@ $app->group('/api', function()
if (GROCY_FEATURE_FLAG_RECIPES)
{
$this->post('/recipes/{recipeId}/add-not-fulfilled-products-to-shoppinglist', '\Grocy\Controllers\RecipesApiController:AddNotFulfilledProductsToShoppingList');
$this->get('/recipes/{recipeId}/requirements', '\Grocy\Controllers\RecipesApiController:GetRecipeRequirements');
$this->get('/recipes/requirements', '\Grocy\Controllers\RecipesApiController:GetRecipeRequirements');
$this->post('/recipes/{recipeId}/consume', '\Grocy\Controllers\RecipesApiController:ConsumeRecipe');
}