It’s great to have Asciidoc labels like swagger-ui in the documentation, but would it be possible to extend this even further?
In asciidoc documentation I also use Plantuml diagrams, e.g. to illustrate the sequence of interaction between microservices.
Is it possible to label those interactions like swagger-ui, just as I now can in asciidoc?
In Plantuml it’s possible to declare macros.
I created a reusable macro for a message in a sequence diagram, that has a note next to it.
By giving the note a stereotype it can have custom styling in the diagram, and can look like a label.
To give the note a style resembling a label I used the following styling.
First some generic styling for each label, based on the [HTTP] stereotype.
Specific styling for a verb goes through its own [verb] stereotype.