Define resources in JAX-RS web applications.
Previous: Configure the development environment.
ParentImplement JAX-RS web applications
Resources can contain static or dynamically updated data. Examples of resources from an online book store application include a book, an order from a store, and a collection of users. By identifying the resources in the application, we can make the service more useful and easier to develop.
What to do next
Configure the JAX-RS application.
Subtopics:
- Define the resources
- Define the URI patterns for resources
- Define resource methods
- Define the HTTP headers and response codes
- Define media types for resources
- Define parameters for request representations to resources
- Define exception mappers for resource exceptions and errors
Related tasks:
Define the resourcesDefine the URI patterns for resources Define resource methods Define the HTTP headers and response codes Define media types for resources Define parameters for request representations to resources Define exception mappers for resource exceptions and errors