New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@RouteURL should have a parameter to customize the path portion of the URL #838

Ladicek opened this Issue Nov 6, 2017 · 0 comments


None yet
2 participants

Ladicek commented Nov 6, 2017

In my case, I often need to create URLs to the endpoints of tested application. Because @RouteURL injects a URL of the form (note the / at the end), I need to construct the URL by something like routeUrl + "api/info". I can't do routeUrl + "/api/info", as that would result in, which is wrong.

I propose adding a path parameter to @RouteURL so that one can write @RouteURL(value = "route-name", path = "/api/info") and the injected URL would be directly In my case, I often need just a single endpoint in one test, that would be perfectly fine. In case someone needs to construct multiple URLs, they can either keep doing routeUrl + "api/info", or define @RouteURL(value = "route-name", path = "") and do routeUrl + "/api/info", which is easier on the eyes.

@lordofthejars lordofthejars added this to the 1.9.2 milestone Nov 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment