September 2015
Intermediate to advanced
354 pages
8h 27m
English
When a client changes only one part of the resource, you can optimize the entire update process by allowing the client to send only the modified part to the server and thereby saving the bandwidth and server resources. RFC 5789 proposes a solution for this use case via a new HTTP method, PATCH. We have already covered the theoretical concepts behind the PATCH method in Chapter 8, RESTful API Design Guidelines, under the Implementing partial update section. In this section, we will see how to actually implement the PATCH method in your JAX-RS application.
JAX-RS allows you to define annotations to represent any custom or non-standard HTTP methods by annotating them with ...