In this series, we get to work: by building the same API in the REST series, but leveraging all the amazing tools and libraries of the Symfony framework. If terminology like representations, resources, and hypermedia are new to you, start with the REST series and then come back. And get ready to get your (API) mind blown.
JAX-RS is the specification for RESTFUL web services on the JEE platform. In this course we will take a look at the basic elements of building a REST service in Java. You will learn about how JAX-RS matches URL paths to java method calls as well as the various and many annotations that are provided by the framework to build a fully functional REST service. Code along with me and let’s build some RESTFul services.
In this course you will build a client server application from scratch using the Eclipse IDE and Apache Tomcat Server. You’ll see how you can create resources, how to configure CRUD requests, and how you can access those resources from a client application.
JAX-RS normally will take care of building the response based on your return from your rest method call. Sometimes though, you need to take total control over how that response is generated. In this course we will look are using the ResponseBuilder. You will also learn how to use the ResponseBuilding APIs to generate custom responses when exceptions occur. Lastly, because we need to update and create as well as read, we will take a look at form submission to a rest service and how to submit JSON objects.
In this course you’ll see a brief history of RESTful Web Services and how they are integral to modern web applications. You’ll see how to setup your computer to begin developing JAX-RS and Jersey applications, specifically by leveraging Maven scaffold applications from the command line.
Just like any modern framework running on a Java application server, JAX-RS defines a lifecycle for the resources that you create. In this course, you will learn about the JAX-RS lifecycles of Instance per request, as well as how singletons behave. Along with those topics we will also explore all of the elements that can be injected into a service to provide access to all the different parts of the HTTP request and response. Lastly, we will look at the power of sub resources.