{8.1.2-updated,8.2.0-updated} @Remote
The {@link oaj.http.remote.Remote @Remote} annotation is used on your interface class to identify it as a REST proxy interface.
The
The {@link oaj.http.remote.Remote#path @Remote(path)} annotation is used to define the HTTP path of the REST service.
The path can be an absolute path to your REST service.
PetStore
{@doc DefaultVarResolver} can also be used in the path.
When a relative path is specified, it's relative to the root-url defined on the
RestClient
When no path is specified, the root-url defined on the
RestClient
The {@link oaj.http.remote.Remote#headers @Remote(headers)} and {@link oaj.http.remote.Remote#headerSupplier @Remote(headerSupplier)} annotations are used to add headers on all requests.
The {@link oaj.http.remote.Remote#version @Remote(version)} and {@link oaj.http.remote.Remote#versionHeader @Remote(versionHeader)} annotations are used to specify the client-side version of this interface that can be used on the server side to perform version-specific handling.
This can be used in conjunction with the server-side client-versioning support.