Forum Discussion

TX_Tech_Writer's avatar
TX_Tech_Writer
Occasional Visitor
3 years ago

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.

No RepliesBe the first to reply