JAX-RS 2.0 is an enhanced framework based on RESTful architecture. It provides support for both the client and the server. …