Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature request: Boxing ResponseContext<T> type #162

Open
cbornet opened this issue Oct 19, 2016 · 0 comments
Open

Feature request: Boxing ResponseContext<T> type #162

cbornet opened this issue Oct 19, 2016 · 0 comments

Comments

@cbornet
Copy link

cbornet commented Oct 19, 2016

It would be useful to be able to do something like:

    public ResponseContext<Pet> getPetById(RequestContext request , Long petId) {
        return new ResponseContext<Pet>(new Pet(), Status.OK);
    }

This way you can both control the http response fields and have type coercition (which you don't have with the current ResponseContext).
Kind of like Spring-MVC's ResponseEntity class.

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

No branches or pull requests

1 participant