Learn how to develop a simple RESTful web service and REST client with the Java EE JAX-RS 2.0 API.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- How to use the exercise files
- Challenges
- JAX-RS 2.0 introduction
- REST introduction
- Headline features of JAX-RS 2.0
- Bookshop application demo
- Deployment demo
- Define the REST contract
- Inheritance or XML configuration
- Define the API root
- Create the resource entity
- Create the resource methods
- Path parameters
- Add path paramaters
- @Consumes and @Produces
- Add the media types
- Challenge: Add resource methods
- Solution: Add resource methods
- The HTTP response
- Build a response
- How to handle errors
- Implement an exception manager
- Work with HATEOAS
- HATEOAS and JAX-RS
- Add HATEOAS to the resource
- Challenge: Add exception handlers
- Solution: Add exception handlers
- Bean Validation introduction
- Work with Bean Validation
- Manage validation failures
- Implement validation failure management
- Challenge: Add validation annotations
- Solution: Add validation annotations
- Make a request
- Implement a client
- Process the response with JSONP
- Use JSONP
- HATEOAS and the frontend
- Implement HATEOAS
- Next steps
Taught by
Alex Theedom