Marker annotation for client.
@Client
interface CustomerApi {
...
@Get("/{id}")
Customer getById(long id);
@Post
long save(Customer customer);
}
Client.Import
When the client interface already exists in another module we use Client.Import
to generate the client.
Specify the @Client.Import
on the package or class to refer to the client
interface we want to generate.
@Client.Import(types = OtherApi.class)
package org.example;
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Specify@Client.Import
on a package or class to refer to the client interface we want to generate. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Flag to set whether to generate a Client Implementation.
-
Element Details
-
generate
boolean generateFlag to set whether to generate a Client Implementation. Set false if the interface exists merely to be extended by other client interfaces- Default:
true
-