How to add a label under a rectangle?

0 votes
asked Mar 22, 2022 in Question / help by anonymous
Hi

I have the simple script below:

rectangle Gateway [
        Gateway
]
i want to put a label "API A+B+C"  right under the rectangle, centred. This should be obvious but i am just starting and dont know how./

Thanks

1 Answer

0 votes
answered Mar 22, 2022 by The-Lu (89,080 points)

Hello A.,

In fact it is not easy to add label `under the rectangle`, because the objects can be linked on us...

Here are some examples, but inside the rectangle...

@startuml
rectangle Gateway <<API A+B+C>>

rectangle G [
Gateway
API A+B+C
]

database db
G --> db
@enduml

If that can help,
Regards.

...