Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ateam.codefest.service;
- import com.ateam.codefest.model.enums.MeasureUnit;
- import com.ateam.codefest.model.jpa.RecipeIngredient;
- import java.util.List;
- public interface RecipeIngredientService {
- RecipeIngredient createRecipeIngredient(String name, Double quantity, MeasureUnit measureUnit, String description, String recipeId);
- RecipeIngredient getIngredient(String ingredientId);
- List<RecipeIngredient> getIngredientsByName(String name);
- List<RecipeIngredient> getIngredientsByRecipeId(String recipeId);
- RecipeIngredient updateName(String ingredientId, String name);
- RecipeIngredient updateQuantity(String ingredientId, Double quantity);
- RecipeIngredient updateMeasureUnit(String ingredientId, MeasureUnit measureUnit);
- RecipeIngredient deleteRecipeIngredient(String ingredientId);
- List<RecipeIngredient> indexRecipeIngredients();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement