api
- api(tag: str = None) Callable
Indicates the
tagof a request method or RequestHandler class.A
tagis an OpenAPI mechanism to group endpoints logically.Can be applied to classes or methods. For example, if you apply it to your
RequestHandlersubclass then your RequestHandler subclass will appear inswagger-uias its own group of endpoints.If no value for
tagis provided and the target is a class, the class name is used. Otherwise the decorator will raise an error.If a request method or api is, categorically, part of more than one group this decorator may be applied multiple times to associate with all groups.