Spring 4 REST Resource Matching
Topics
- Creating resources
- @Path
- HTTP method annotations (Uniform interface)
- @GET, @POST, @PUT, @DELETE
- Building REST application step by step
- Sub-resource locator
Creating a Resource using @Path Annotation
How to Create Root Resource Class?
- Create a POJO (Plain Old Java Object) class and annotate it with @Path annotation with relative URI path as value
- The base URI is the application context
- Implement resource methods inside the POJO with HTTP method annotations
- @GET, @PUT, @POST, @DELETE
Download course content