Sunday, May 19, 2019

JAXRS all-in-one

All annotations are summarized here

"Base URL for any web application is:


Append tag from web.xml with Base URL that forms:


Append class-level @Path(“class-level”) annotation and then method-level @Path(“method-level”) annotation that forms:


extends Application







@PathParam("isbn") String isbn



It's all very clear apart @Context... read here to understand @Context

this for SecurityContext :

and some more coding examples here

No comments: