Annotation Interface ApiController
Class annotation that indicates that the class contains endpoints. An endpoint is
indicated by the
ApiEndpoint
annotation on a method. The title
and
desc
parameters should be populated as this data is consumed by the openApi
integration within kOS to make the endpoints discoverable.
A base url can optionally be specified in the @ApiController
annotation. This will
be prefixed to every endpoint defined within the controller. For example, to prefix all
mappings with "/myService", use @ApiController(base = "/myService")
.
Endpoints support versioning via the @{code version} parameter. This will define the
default version of all @ApiEndpoint
's in the controller class unless they override
the version independently. The version will be returned as part of the standard kOS
response envelope.
- Since:
- 1.0
- Version:
- 2023-02-09
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements