Skip to content
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

@ApplicationPath not considered #2489

Closed
pawsaw opened this issue Oct 23, 2017 · 3 comments
Closed

@ApplicationPath not considered #2489

pawsaw opened this issue Oct 23, 2017 · 3 comments
Assignees

Comments

@pawsaw
Copy link

pawsaw commented Oct 23, 2017

The javax.ws.rs.ApplicationPath is not considered while constructing URLs.

@webron
Copy link
Contributor

webron commented Oct 23, 2017

In which version?

@pawsaw
Copy link
Author

pawsaw commented Oct 23, 2017

In version 2.0.0-rc2

Having a resource...

@Path("/persons")
class PersonResource { ... }

and

@ApplicationPath("/api")
class JerseyConfig extends ResourceConfig {
    public JerseyConfig() {
        super();
        register(PersonResource.class);
        // ...
    }
}

... I would expect the URIs for each GET, POST, ... annotated method to be /api/persons

Best regards, Pawel

@frantuma
Copy link
Member

frantuma commented Oct 24, 2017

@ApplicationPath support added in #2493; it's currently in 2.0 branch and will be part of next rc

frantuma added a commit that referenced this issue Oct 24, 2017
resolve #2489 - resolve @ApplicationPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants