我有这个api。
@RequestMapping(value = "product/{id}", method = RequestMethod.PUT, produces = "application/json")
@ApiOperation("Update the person from the system and identifier is needed. 404 if product does not exist.")
public ResponseEntity<?> editProduct( @ApiParam(example = "1") @PathVariable("id") int id,
@RequestBody HashMap<String,String> productRequest)
在swagger-ui中,我想放置HashMap<String,String>
的示例值。
我想换成
{
"productName" : "....",
"productDescription": "....",
"productPrice" : 390
}
我该怎么做?