@startuml recipesSearch
    !include ../style/commons.style

    participant ": Front" as ft
    participant ": Back" as bk
    participant ": RecipeController" as rc

    activate ft
    ft -> bk : POST /recipes/addtoDoneRecipe
    activate bk
    bk -> rc : addToDone(recipe)
    activate rc
    create "RecipeController.recipeService: RecipeService" as rs
    rc -> rs : RecipeService(recipeDao, fridgeDao, recipeExternalDao, specificRecipeDao)
    activate rs
    rc -> rs : addDoneRecipe(recipe)
    rs --> rc
    deactivate rs
    rc --> bk
    deactivate rc
    bk --> ft
    deactivate bk


@enduml

