@RestController @RequestMapping(GraphDBController.DELEGATE_PREFIX) @Api(value = "GraphDB", tags = { "graphdb-Api" }) public class GraphDBController { @Autowired GraphProperties graphProperties; public final static String DELEGATE_PREFIX = "/graphdb"; @Autowired private RoutingDelegate routingDelegate; @RequestMapping(value = "/**", method = {RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE}, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity catchAll(HttpServletRequest request, HttpServletResponse response) { return routingDelegate.redirect(request, response, graphProperties.getGraphServer(), DELEGATE_PREFIX); } }