Renaming of rest resources

This commit is contained in:
araemer 2026-02-21 07:44:26 +01:00
parent 1487bb73a1
commit 0dc3264a22
12 changed files with 328 additions and 79 deletions

View file

@ -1,10 +1,12 @@
import type { IngredientGroupModel } from "./IngredientGroupModel"
import type { InstructionStepModel } from "./InstructionStepModel"
import type { ServingsModel } from "./ServingsModel"
import type {IngredientGroupModel} from "./IngredientGroupModel"
import type {InstructionStepModel} from "./InstructionStepModel"
import type {ServingsModel} from "./ServingsModel"
import type {TagModel} from "./TagModel.ts";
/**
* Represents a recipe object in the application.
*/
/*
* @todo ingredient groups! There may be serveral ingredient lists, each with a title.
* e.g. for the dough, for the filling, for the icing,...
@ -13,24 +15,27 @@ import type { ServingsModel } from "./ServingsModel"
* - add an IngredientGroupListEditor for handling IngredientGroups
*/
export interface RecipeModel {
/** Unique identifier for the recipe */
id?: string
/** Unique identifier for the recipe */
id?: string
/** Title of the recipe */
title: string
/** Title of the recipe */
title: string
/** List of ingredients groups containing the ingredients of the recipe */
ingredientGroupList: IngredientGroupModel[]
/** List of ingredients groups containing the ingredients of the recipe */
ingredientGroupList: IngredientGroupModel[]
/** Preparation instructions */
instructionStepList: InstructionStepModel[]
/** Preparation instructions */
instructionStepList: InstructionStepModel[]
/** Number of servings, e.g., for 4 person, 12 cupcakes, 2 glasses */
servings: ServingsModel
/** Number of servings, e.g., for 4 person, 12 cupcakes, 2 glasses */
servings: ServingsModel
/** Unit for the quantity */
/** Unit for the quantity */
/** Optional image URL for the recipe */
imageUrl?: string
/** Optional image URL for the recipe */
imageUrl?: string
/** Tags categorising the recipe, e.g. "dessert", "vegetarian", "christmas" */
tagList: TagModel[]
}