I'm developing an API Rest with Spring 4 and annotations swagger. Until now I was using
'@RequestMapping(value = "/myapi/{id}", method = RequestMethod.GET, produces = "application/json; charset=UTF-8")', but I want to use the reduced version with GET:
@GetMapping("/myapi/{id}").
The problem is that swagger is not showing correctly the response content type:
Instead of it, I get the following:
response content type /
I have tried adding an HttpHeaders object to the response entity but not works.
Can you help me?