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

Support custom API response status. #8

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

Support custom API response status. #8

dostermeier opened this issue Nov 4, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@dostermeier
Copy link

@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
Copy link
Owner

@fabiomaffioletti 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.