@apiresponse swagger annotation code example
Example 1: how to define request object in swagger annotations
@ApiParam(
value = "A JSON value representing a transaction. An example of the expected schema can be found down here. The fields marked with an * means that they are required.",
examples = @Example(value =
@ExampleProperty(
mediaType = MediaType.APPLICATION_JSON,
value = "{foo: whatever, bar: whatever2}"
)
)
)
Example 2: swaggerresponse
<GenerateDocumentationFile>true</GenerateDocumentationFile>