Usually, RESTful service path is represented in format of /path, e.g {context}/{root}/{version}/{resource} in this, the context is the most volatile portion. The root is web.xml, annotation driven.
The rules are:
1. If defined in web.xml, then url pattern is pre/appended to @Path annotations
2. If a class is defined within an @Application, then it will inherit the base of the annotation
3. All methods are composite paths of @Path parameters from both the class annotation and any method annotations + supporting verbs.
No comments :
Post a Comment