wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

Content Type from a class level @RequestMapping annotation is not honored #41

Closed MartinAhrer closed 10 years ago

MartinAhrer commented 10 years ago

Given a controller class that already has a class level @RequestMapping, when it defines a content type (e.g. produces = {"application/json"}, it is not honored.

@ExposesResourceFor(UserGroupResource.class)
@RequestMapping(value = "/userGroups", produces = {"application/json"})
public class UserGroupController {

Haven't tested with consumes though.

wkennedy commented 10 years ago

This feature has been added to Master. Will be released in 0.3.3.