tag
Applies a tag to all children of this route. Parameter tag should be an enum that inherits from APITag, check APITag description for an explanation.
Return
the same route that received the call to chain multiple calls
Parameters
the tag to apply
This method assigns an OpenAPI tag too all child routes defined inside fn. Parameter tag should be an enum that inherits from APITag, check APITag description for an explanation.
Usage example:
// Defined tags enum class Tags(override val description: String) : APITag { EXAMPLE("Wow this is a tag?!") }
... apiRouting { route("examples") { tag(Tags.EXAMPLE) { // <-- Applies the tag here route("getTextData").get
Parameters
the tag to apply
the block where the sub routes are defined