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

Support custom API response status. #8

Closed
dostermeier opened this Issue Nov 4, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@dostermeier

dostermeier commented Nov 4, 2013

Not all RESTful API methods return a 200 on success. For example, it is common to return a 201 for a successful POST.

It seems like this would be a good candidate for another annotation, although I am weary of suggesting the creation of annotations for everything :)

It would be very useful to support some indication in the UI of what the response status of an API call will be. (aside from the error response statuses).

@fabiomaffioletti fabiomaffioletti added this to the 1.1.0 milestone Jan 11, 2015

@fabiomaffioletti fabiomaffioletti self-assigned this Jan 11, 2015

@fabiomaffioletti

This comment has been minimized.

Show comment
Hide comment
@fabiomaffioletti

fabiomaffioletti Jan 11, 2015

Owner

The response status will be a new attribute of the @ApiMethod annotation and will default to 200.

Owner

fabiomaffioletti commented Jan 11, 2015

The response status will be a new attribute of the @ApiMethod annotation and will default to 200.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment