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

Comments

Projects
None yet
2 participants
@jameselsey

jameselsey commented Jan 21, 2015

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

This comment has been minimized.

Show comment
Hide comment
@jameselsey

jameselsey Jan 22, 2015

Return type on method signature is ResponseEntity<Object>

This is when returning a no content

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

jameselsey commented Jan 22, 2015

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