Reputation: 3417
I have two resource classes
Pc.java - @Path("/pc")
Tag.java - @Path("/{entity:(pc|networks)?}/{id}/tags")
So the second resource handles a branch of '/pc' or '/networks' urls that end with '/tags'.
But the problem is none of my methods in Tag.java are getting called. I think this is because Pc.java is configured to handle /pc, so all calls get redirected to that resource and Tag.java doesn't get called, so i get a 404 error.
Any ideas?
Upvotes: 2
Views: 1067
Reputation: 128829
Perhaps at least part of Tag should be a sub-resource of Pc?
Upvotes: 3