@startuml
!include ..\..\..\..\.c4s\C4_Container.puml

AddElementTag("state:new", $bgColor=green, $fontColor=#ffffff, $borderColor=green, $shadowing="False")
AddElementTag("state:changed", $bgColor=orange, $fontColor=#ffffff, $borderColor=orange, $shadowing="False")
AddElementTag("state:removed", $bgColor=red, $fontColor=#ffffff, $borderColor=red, $shadowing="False")

AddRelTag("state:new", $textColor=green, $lineColor=green)
AddRelTag("state:changed", $textColor=orange, $lineColor=orange)
AddRelTag("state:removed", $textColor=red, $lineColor=red)

SHOW_PERSON_PORTRAIT()
LAYOUT_TOP_DOWN()

skinparam linetype polyline

title Storefront App - View Basket - C4 Static - Container level

System(ECommercePlatform.SoftwareSystems.StorefrontApp, "Storefront App", "")
System(ECommercePlatform.SoftwareSystems.StorefrontBff, "Storefront Bff", "")

System_Boundary(ECommercePlatform.SoftwareSystems.BasketService, "Basket Service") {
    Container(ECommercePlatform.SoftwareSystems.BasketService.Containers.Api, "Api", "", "")
    Container(ECommercePlatform.SoftwareSystems.BasketService.Containers.Database, "Database", "", "")
}

Rel(ECommercePlatform.SoftwareSystems.StorefrontApp, ECommercePlatform.SoftwareSystems.StorefrontBff, "Uses")
Rel(ECommercePlatform.SoftwareSystems.StorefrontBff, ECommercePlatform.SoftwareSystems.BasketService.Containers.Api, "Uses")
Rel(ECommercePlatform.SoftwareSystems.BasketService.Containers.Api, ECommercePlatform.SoftwareSystems.BasketService.Containers.Database, "Uses")


SHOW_LEGEND()
@enduml
