October 2017
Beginner to intermediate
316 pages
8h
English
Of the several HTTP methods that exist (GET, POST, PUT, DELETE, HEAD), we will concentrate on the GET method. A GET call is made by an HTTP client, like a browser, when the user validates an address (URL) in the address bar.
The best practice is to create a class whose name ends with Resource in a package whose full name contains webservices. The class must be annotated with @Path and this annotation must be valued. The value of an annotation is what is inside its parentheses when no parameter name is provided, such as in @Path("/thisisthevalue"). This value will then be part of each service that you write to this class.
Each service will also have its own @Path annotation and the @GET annotation as well so that ...
Read now
Unlock full access