martypitt/swagger-springmvc — pull request #279 by scheffield (2014-04-27 21:47:28+00:00)
Title: Support for multi segment resource groups (api/v1/businesses)

We annotaded controllers as follows:

```
@Controller
@RequestMapping("${api.root}/v1/entity")
@Api(value = "Entity")
public class EntityController {
@RequestMapping(value = "/{" + ENTITY_ID_PATH_VARIABE + "}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "get a specific Entity", response = Entity.class)
public Entity getEntityById(@PathVariable(ENTITY_ID_PATH_VARIABE) ResourceId entityId) {}
}
```

This leads to "api/v1/entity" as a resource group. The ```DefaultSwaggerController``` was not able to match the request for such a resource group since the used ```RequestMapping``` ignored "```/```".

- updated DefaultSwaggerController to handle resource groups with
multiple segment path like api/v1/businesses
- added Testcase for multi segment resource groups