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

Unable to override default responsestatus of 200 #78

Closed
jameselsey opened this issue Jan 21, 2015 · 1 comment
Closed

Unable to override default responsestatus of 200 #78

jameselsey opened this issue Jan 21, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@jameselsey
Copy link

I have set the following on a controller method

@ApiMethod(
            path = "/{id}/customer/{answerId}",
            verb = ApiVerb.PUT,
            description = "Saves a customer object",
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            responsestatuscode = "204"
    )

However the jsondoc ui displays the responsestatuscode as 200.

@jameselsey
Copy link
Author

Return type on method signature is ResponseEntity<Object>

This is when returning a no content

return new ResponseEntity<Object>(HttpStatus.NO_CONTENT);

@fabiomaffioletti fabiomaffioletti added this to the 1.1.4 milestone Jan 23, 2015
@fabiomaffioletti fabiomaffioletti self-assigned this Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants