The @RequestMapping(value) annotation supports property values for dynamically specifying the endpoint value, like @RequestMapping(value="${some.request.mapping})
I am using the Springfox project to document my API and I would like to be able to add a Link to the Swagger2 documentation in my API:
I'm adding a link to a resource via:
resource.add(linkTo(methodOn(Swagger2Controller.class).getDocumentation(null)).withRel("swagger.json"));
and the resuling link looks like:
http://localhost:8080/api/${springfox.documentation.swagger.v2.path:/v2/api-docs}