Marker annotation for client.
@Client
interface CustomerApi {
...
@Get("/{id}")
Customer getById(long id);
@Post
long save(Customer customer);
}
-
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 Elements
-
Element Details
-
value
String valueSpecify the path mapping request to the controller.- Default:
""
-
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
-