Develop RESTful Java Web Services using JAX-RS and Jersey by Vinod Kayartaya

Develop RESTful Java Web Services using JAX-RS and Jersey

29 lectures - 2 hr 3 mins

What you will learn in this course?

  • Setup a Java development environment using Java 8, Eclipse & Tomcat 9 on your computer
  • Create a new maven project & add the necessary library dependencies for creating your first JAX-RS web service
  • Code your web services to respond with different MIME types
  • Handle errors
  • Create web services that support CRUD operations
  • Test your Java web services with the Postman Chrome extension
  • Build and deploy web services

Requirements

  • Basic knowledge of Java programming language
  • Basic knowledge of web applications

Description

JAX-RS the Java API for RESTful Web Services is a Java programming language API specification that provides support in creating web services according to the Representational State Transfer (REST) architectural pattern. JAX-RS uses annotations, introduced in Java SE 5, to simplify the development and deployment of web service clients and endpoints.

From version 1.1 on, JAX-RS is an official part of Java EE 6. A notable feature of being an official part of Java EE is that no configuration is necessary to start using JAX-RS. For non-Java EE 6 environments a small entry in the web.xml deployment descriptor is required.

This course will guide you through the steps in creating powerful RESTful web services using the Java official API.

All the best!

Who this course is for:
  • Java developers

Who this course is for:

  • Java developers who are looking to develop RESTful services
  • Students who want to scale up their Java Skills
  • API Developers

What's included?

Video Icon 26 videos File Icon 2 files Text Icon 1 text file

Course content

Welcome to the world of web services
Course intro
3 mins
Overview of RESTful web services
3 mins
Overview of JAX-RS
4 mins
Setup
Install JDK, Eclipse and Tomcat
3 mins
Configure Tomcat in Eclipse
4 mins
Create and run a new Maven web project in Eclipse
6 mins
Create REST services
Create a simple REST endpoint to understand the basics
8 mins
Producing different representations from the web service
7 mins
Setting up the database for our web service
Issue with H2 Database version
Downloading and setting up H2 Database
4 mins
CONTACTS table and data
45.3 KB
Importing the DB table and data
2 mins
Creating the DAO Layer for our web service
Creating the DAO interface
14 mins
Implementing the addContact() method
6 mins
Implementing the updateContact() method
3 mins
Implementing the deleteContact() method
2 mins
Implementing the findXXX() methods
8 mins
Creating the DaoFactory class
4 mins
Performing CRUD operations
Handling GET requests to retrieve a resource
9 mins
Handling POST requests to create a resource
5 mins
Handling PUT requests to update a resource
3 mins
Handling DELETE requests to delete a resource
3 mins
Handling errors
Responding with HTTP error codes for exceptions
6 mins
Custom representations (other than JSON or XML)
Using MessageBodyWriter
9 mins
Using MessageBodyReader
6 mins
Building and deploying
Creating WAR file from your Eclipse project
3 mins
Deploying on a locally installed Apache Tomcat Server
5 mins
Import my project into your Eclipse IDE
Download the eclipse project
1.79 MB
How to use the downloaded eclipse project
4 mins

Hi. My name is Vinod

Hi, my name is Vinod, and I am a software trainer, consultant and freelance developer. I am the creator some of the highest rated courses on Udemy. In my professional career, I have trained hundreds of thousands of software engineers. Teaching is not only my profession, but also a passion. Creating online courses gives me the opportunity to reach and help students across the world.