{new} @Request
The {@link oaj.http.annotation.Request @Request} annotation can be applied to a type of a
PetStore store = restClient.getRemoteResource(PetStore.
The
The annotated methods must be no-arg and public. They can be named anything.
Any of the following annotations can be used on the methods:
The behavior and functionality of all of the annotations are the same as if they were used on method arguments directly. This means full support for OpenAPI serialization and validation.
Annotations on methods are inherited from parent classes and interfaces.
For example, the request bean above could have defined annotations in an interface to keep them clear from the implementation: