Skip to content

Support client generation with @Client and @Client.Import #55

Closed
@rbygrave

Description

@rbygrave
@Client
@Path("users")
public interface GitHubUsers {

  @Get("{user}/repos")
  List<Repo> listRepos(String user);

}

The client annotation processor then generates an implementation of GitHubUsers

Client.Import

To generate a client when the API is defined in another module use @Client.Import

@Client.Import(types = OtherApi.class)
package org.example;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions