@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface ApiResponse
ApiOperation
.
If your API has uses a different response class for these responses, you can describe them
here by associating a response class with a response code.
Note, Swagger does not allow multiple response types for a single response code.
This annotation is not used directly and will not be parsed by Swagger. It should be used
within the ApiResponses
.ApiOperation
,
ApiResponses
public abstract int code
public abstract String message
public abstract Class<?> response
Copyright © 2014. All Rights Reserved.