(Quick Reference)

SwaggyAdditionalClasses

Purpose

Tells Swaggy that additional classes need to be documented for the method documentation to be complete. Typically these are command objects.

Examples

@ApiOperation(value = "Process Custom Request", response = ResponseThatIsAutomaticallyDocumented)
@ApiResponses([
    @ApiResponse(code = 422, message = 'Bad Entity Received'),
])
@ApiImplicitParams([
    @ApiImplicitParam(name = 'body', paramType = 'body', required = true, dataType = 'CustomCommand')
])
@SwaggyAdditionalClasses([CustomCommand])