cancel
Showing results for 
Search instead for 
Did you mean: 

How to annotate a compound response object

TX_Tech_Writer
Occasional 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.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors