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

Support for @ApplicationPath in JAX-RS doclet #47

Open
grossws opened this issue Jul 24, 2012 · 1 comment
Open

Support for @ApplicationPath in JAX-RS doclet #47

grossws opened this issue Jul 24, 2012 · 1 comment
Labels

Comments

@grossws
Copy link

grossws commented Jul 24, 2012

Support JAX-RS paths prefixing set in @ApplicationPath("/rest") annotation.

In code I have something like:

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("/rest")
public class RestApp extends Application {
}
import javax.ws.rs.GET;
import javax.ws.rs.Path;

public class RestResource {
  @GET @Path("/resource")
  public String getResource() {
    // ...
  }
}

So all JAX-RS paths are relative to /rest either if I use @Path("/resource") it will be mapped to /rest/resource. So in documentation path should be /rest/resource instead of /resource as it is now.

Maybe it works fine if servlet-mapping is set for javax.ws.rs.core.Application to /rest/*, I haven't tested.

@FroMage
Copy link
Owner

FroMage commented Jul 24, 2012

Not supported yet. If you provide a pull request I'll apply it.

grossws added a commit to grossws/jax-doclets that referenced this issue Jul 25, 2012
Fixed FroMage#47 "Support for @ApplicationPath in JAX-RS doclet"
Now application path from javax.ws.rs.core.Application child prepended
to resources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants