Annotation Type Client


@Target(TYPE) @Retention(RUNTIME) public @interface Client
Marker annotation for client.

 @Client
 interface CustomerApi {
   ...
   @Get("/{id}")
   Customer getById(long id);

   @Post
   long save(Customer customer);
 }

 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Specify @Client.Import on a package or class to refer to the client interface we want to generate.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Flag to set whether to generate a Client Implementation.
    Specify the path mapping request to the controller.
  • Element Details

    • value

      String value
      Specify the path mapping request to the controller.
      Default:
      ""
    • generate

      boolean generate
      Flag to set whether to generate a Client Implementation. Set false if the interface exists merely to be extended by other client interfaces
      Default:
      true