Recipes
The recipes you cook: importing one from a link, its ingredients and steps, scaling it, and what you cooked.
Commands
- PostRecord that a recipe was cooked
recipes.cook.logRecords one time the recipe was made, with the servings made and how it went if known. - PostChange a cook's note or servings
recipes.cook.updateSets only what's given, such as how it turned out, added later. - PostAdd one ingredient
recipes.ingredient.addAdds one ingredient line, last or before another ingredient of the same recipe. - PostMove one ingredient
recipes.ingredient.movePuts the ingredient just before another ingredient of the same recipe, or last when before_ingredient_id is null. - PostRemove one ingredient
recipes.ingredient.removeDeletes the ingredient and its links to steps. - PostChange one ingredient
recipes.ingredient.updateSets only the fields given; send null to clear one that can be empty. - PostMake a version of a recipe
recipes.recipe.copyCopies a recipe with its fields, source, pictures, ingredients, steps and step links into a new recipe based on it, so the family can change it without touching the original. - PostMake a recipe
recipes.recipe.createMakes a recipe with its ingredients and steps if known, in the order given. - PostStart importing a recipe from a web page
recipes.recipe.import_urlMakes a recipe in the importing state, titled after the site, and a job reads the page and fills in the real recipe. - PostMake new pictures for a recipe
recipes.recipe.regenerate_imagesAsks for a new icon, card image or both, with an optional hint about what to draw. - PostDelete a recipe
recipes.recipe.removeDeletes the recipe with its ingredients, steps, cooks and imported source text. - PostMake a recipe for a different number of servings
recipes.recipe.scaleMultiplies every amount, including the top of ranges, by the new servings over the old, rounded to 6 decimal places, and sets the servings. - PostReplace a recipe's whole ingredient list
recipes.recipe.set_ingredientsFor big edits. - PostReplace a recipe's whole step list
recipes.recipe.set_stepsFor big edits. - PostChange a recipe's title, summary, servings, times, notes or source
recipes.recipe.updateSets only the fields given; send null to clear one that can be empty. - PostAdd one step
recipes.step.addAdds one step, last or before another step of the same recipe, with the ingredients it uses. - PostMove one step
recipes.step.movePuts the step just before another step of the same recipe, or last when before_step_id is null. - PostRemove one step
recipes.step.removeDeletes the step and its links to ingredients. - PostChange one step
recipes.step.updateSets only the fields given; send null to clear one that can be empty. ingredient_ids replaces the step's links, and each must be an ingredient of the step's recipe (ingredient_not_found otherwise).
Queries
- GetA whole recipe
recipes.recipe.getThe recipe with its ingredients and steps in order, step ingredient links, source fields, cooks and versions. - GetThe original of an imported recipe
recipes.recipe.get_sourceThe recipe as it was imported, to compare against. - GetWhat has been cooked lately
recipes.recipe.list_recentRecipes that have been cooked, most recently cooked first, then the ones never cooked, newest first. - GetFind recipes
recipes.recipe.searchRecipes whose title, summary, notes or ingredient names contain every word of text (ignoring case), or all recipes without text. - GetWhat to buy to cook a recipe
recipes.recipe.shopping_previewEach ingredient scaled to the servings, with whether its product is a staple, what inventory says we have, and whether it is already on the grocery list. ticked says whether to add it by default.