Learn how to use Jakarta Web Services to build, finetune, and run RESTful APIs.
Overview
Syllabus
Introduction
- Jakarta Web Services: Integrating applications over the internet
- What you should know
- What is a web service?
- Why are web services needed?
- APIs, web services, and endpoints
- REST and SOAP
- XML/SOAP-based vs. RESTful web services
- RESTful and XML/SOAP-based web service use cases
- History of web services: From Java EE to Jakarta EE
- What's new in Jakarta EE for web services?
- The cloud-native focus in Jakarta web services
- CRUD and HTTP methods
- Create and configure a basic web application
- Configure Jakarta RESTful Web Services
- Add a Resource class
- Implement resource method for reading: HTTP GET
- Use path parameters
- Use query parameters
- Explore response value types: Media types
- Media types in action
- ResponseBuilder and methods
- Control the response via ResponseBuilder
- Challenge: Travel app
- Solution: Travel app
- Use HTTP POST for the CREATE action
- Use HTTP PUT for the UPDATE action
- Use HTTP DELETE for the DELETE action
- Challenge: Travel app
- Solution: Travel app
- Validate your REST endpoints
- Perform single field validations in REST
- Perform custom validations in REST
- Handle exceptions in REST endpoints
- Implement security in REST endpoints
- The Java SE bootstrap API
- Create and configure the Java SE app
- Build the RESTful application
- Run the application and test the endpoint
- Next steps
Taught by
Kesha Williams