TX_Tech_Writer
4 years agoOccasional Visitor
How to annotate a compound response object
Hello,
I need to know how to annotate the response for the following response object:
Map<String, Object>
So, in other words, I need to fill in the "x" values in the following annotations:
@ApiOperation(response = x)
@ApiResponses(value = {
@ApiResponse(
code = 200,
response = x)})
I tried the following, but it kept the project from building:
@ApiOperation(response = String.class, Object.class,
responseContainer = "Map")
@ApiResponses(value = {
@ApiResponse(
code = 200,
response = String.class, Object.class,
responseContainer = "Map")
})
Any help is appreciated.