Swashbuckle.webapi: Remove Default HTTP 200 as a Response?

Created on 3 May 2016  路  2Comments  路  Source: domaindrivendev/Swashbuckle.WebApi

Is there a way to tell SB not to generate an HTTP 200? I'm doing a POST and only want to return either 201 or 400, but I can't seem to find a way to do that...

Thanks.

Most helpful comment

Have you tried the "SwaggerResponseRemoveDefaults" attribute?

All 2 comments

Have you tried the "SwaggerResponseRemoveDefaults" attribute?

I have now! Thank you very very much - I was hoping it would be straightforward...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guidoffm picture guidoffm  路  5Comments

djem3000 picture djem3000  路  5Comments

calexandre picture calexandre  路  5Comments

joseph-ortiz picture joseph-ortiz  路  4Comments

rautsik picture rautsik  路  4Comments