Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create the Api client interface too #2

Open
maborg opened this issue Jan 10, 2020 · 0 comments
Open

create the Api client interface too #2

maborg opened this issue Jan 10, 2020 · 0 comments

Comments

@maborg
Copy link

maborg commented Jan 10, 2020

Hi Franz,
Nice work, your generator is really cool.

It would be nice to have the @client interface too.
Something like:

@Client("/persons/reactive")
public interface PersonReactiveClient { 
    @Post
    Single<Person> add(@Body Person person);
    @Get("/{id}")
    Maybe<Person> findById(@PathVariable Integer id);
    @Get(value = "/stream", produces = MediaType.APPLICATION_JSON_STREAM)
    Flowable<Person> findAllStream();
}

This would be useful in my use case but also in many others, IMHO, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant