Skip to content
Rigel docs
Open Rigel

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 cookedrecipes.cook.logRecords one time the recipe was made, with the servings made and how it went if known.
  • PostChange a cook's note or servingsrecipes.cook.updateSets only what's given, such as how it turned out, added later.
  • PostAdd one ingredientrecipes.ingredient.addAdds one ingredient line, last or before another ingredient of the same recipe.
  • PostMove one ingredientrecipes.ingredient.movePuts the ingredient just before another ingredient of the same recipe, or last when before_ingredient_id is null.
  • PostRemove one ingredientrecipes.ingredient.removeDeletes the ingredient and its links to steps.
  • PostChange one ingredientrecipes.ingredient.updateSets only the fields given; send null to clear one that can be empty.
  • PostMake a version of a reciperecipes.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 reciperecipes.recipe.createMakes a recipe with its ingredients and steps if known, in the order given.
  • PostStart importing a recipe from a web pagerecipes.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 reciperecipes.recipe.regenerate_imagesAsks for a new icon, card image or both, with an optional hint about what to draw.
  • PostDelete a reciperecipes.recipe.removeDeletes the recipe with its ingredients, steps, cooks and imported source text.
  • PostMake a recipe for a different number of servingsrecipes.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 listrecipes.recipe.set_ingredientsFor big edits.
  • PostReplace a recipe's whole step listrecipes.recipe.set_stepsFor big edits.
  • PostChange a recipe's title, summary, servings, times, notes or sourcerecipes.recipe.updateSets only the fields given; send null to clear one that can be empty.
  • PostAdd one steprecipes.step.addAdds one step, last or before another step of the same recipe, with the ingredients it uses.
  • PostMove one steprecipes.step.movePuts the step just before another step of the same recipe, or last when before_step_id is null.
  • PostRemove one steprecipes.step.removeDeletes the step and its links to ingredients.
  • PostChange one steprecipes.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 reciperecipes.recipe.getThe recipe with its ingredients and steps in order, step ingredient links, source fields, cooks and versions.
  • GetThe original of an imported reciperecipes.recipe.get_sourceThe recipe as it was imported, to compare against.
  • GetWhat has been cooked latelyrecipes.recipe.list_recentRecipes that have been cooked, most recently cooked first, then the ones never cooked, newest first.
  • GetFind recipesrecipes.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 reciperecipes.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.