I need to customize the request body in swagger, because in my controller I get a HashMap<String, String>
and in the documentation it appears as
I would like to inform which properties I want to receive in the hashmap and I don't know how to annotate.
My Controller
@PostMapping("/add")
@ResponseStatus(HttpStatus.CREATED)
public Atendimento create(@RequestBody HashMap<String, String> param) throws Exception {
return service.create(param);
}