O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HTTP and JAX-RS refreshers

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required