diff --git a/RestEasy Example/pom.xml b/RestEasy Example/pom.xml
new file mode 100644
index 0000000000..ec9e87b0d1
--- /dev/null
+++ b/RestEasy Example/pom.xml
@@ -0,0 +1,77 @@
+
+
+ 4.0.0
+
+ com.baeldung
+ resteasy-tutorial
+ 1.0
+ war
+
+
+ 3.0.14.Final
+
+
+
+ RestEasyTutorial
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+
+
+
+
+
+
+ org.jboss.resteasy
+ resteasy-servlet-initializer
+ ${resteasy.version}
+
+
+
+
+ org.jboss.resteasy
+ resteasy-client
+ ${resteasy.version}
+
+
+
+
+
+ org.jboss.resteasy
+ resteasy-jaxb-provider
+ ${resteasy.version}
+
+
+
+ org.jboss.resteasy
+ resteasy-jackson-provider
+ ${resteasy.version}
+
+
+
+
+
+ junit
+ junit
+ 4.4
+
+
+
+ commons-io
+ commons-io
+ 2.4
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RestEasy Example/src/main/java/com/baeldung/client/ServicesInterface.java b/RestEasy Example/src/main/java/com/baeldung/client/ServicesInterface.java
new file mode 100644
index 0000000000..3d03c16faf
--- /dev/null
+++ b/RestEasy Example/src/main/java/com/baeldung/client/ServicesInterface.java
@@ -0,0 +1,36 @@
+package com.baeldung.client;
+
+import com.baeldung.model.Movie;
+import javax.ws.rs.*;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import java.util.List;
+
+@Path("/movies")
+public interface ServicesInterface {
+
+ @GET
+ @Path("/getinfo")
+ @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ Movie movieByImdbId(@QueryParam("imdbId") String imdbId);
+
+ @GET
+ @Path("/listmovies")
+ @Produces({ "application/json" })
+ List listMovies();
+
+ @POST
+ @Path("/addmovie")
+ @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ Response addMovie(Movie movie);
+
+ @PUT
+ @Path("/updatemovie")
+ @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ Response updateMovie(Movie movie);
+
+ @DELETE
+ @Path("/deletemovie")
+ Response deleteMovie(@QueryParam("imdbId") String imdbID);
+
+}
diff --git a/RestEasy Example/src/main/java/com/baeldung/model/Movie.java b/RestEasy Example/src/main/java/com/baeldung/model/Movie.java
new file mode 100644
index 0000000000..408f2144fb
--- /dev/null
+++ b/RestEasy Example/src/main/java/com/baeldung/model/Movie.java
@@ -0,0 +1,66 @@
+package com.baeldung.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "movie", propOrder = { "imdbId", "title" })
+public class Movie {
+
+ protected String imdbId;
+ protected String title;
+
+ public Movie(String imdbId, String title) {
+ this.imdbId = imdbId;
+ this.title = title;
+ }
+
+ public Movie() {}
+
+ public String getImdbId() {
+ return imdbId;
+ }
+
+ public void setImdbId(String imdbId) {
+ this.imdbId = imdbId;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ Movie movie = (Movie) o;
+
+ if (imdbId != null ? !imdbId.equals(movie.imdbId) : movie.imdbId != null)
+ return false;
+ return title != null ? title.equals(movie.title) : movie.title == null;
+
+ }
+
+ @Override
+ public int hashCode() {
+ int result = imdbId != null ? imdbId.hashCode() : 0;
+ result = 31 * result + (title != null ? title.hashCode() : 0);
+ return result;
+ }
+
+ @Override
+ public String toString() {
+ return "Movie{" +
+ "imdbId='" + imdbId + '\'' +
+ ", title='" + title + '\'' +
+ '}';
+ }
+}
diff --git a/RestEasy Example/src/main/java/com/baeldung/server/MovieCrudService.java b/RestEasy Example/src/main/java/com/baeldung/server/MovieCrudService.java
new file mode 100644
index 0000000000..b7f3215f3f
--- /dev/null
+++ b/RestEasy Example/src/main/java/com/baeldung/server/MovieCrudService.java
@@ -0,0 +1,83 @@
+package com.baeldung.server;
+
+import com.baeldung.model.Movie;
+import javax.ws.rs.*;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+@Path("/movies")
+public class MovieCrudService {
+
+ private Map inventory = new HashMap();
+
+ @GET
+ @Path("/getinfo")
+ @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ public Movie movieByImdbId(@QueryParam("imdbId") String imdbId) {
+
+ System.out.println("*** Calling getinfo for a given ImdbID***");
+
+ if (inventory.containsKey(imdbId)) {
+ return inventory.get(imdbId);
+ } else
+ return null;
+ }
+
+ @POST
+ @Path("/addmovie")
+ @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ public Response addMovie(Movie movie) {
+
+ System.out.println("*** Calling addMovie ***");
+
+ if (null != inventory.get(movie.getImdbId())) {
+ return Response.status(Response.Status.NOT_MODIFIED).entity("Movie is Already in the database.").build();
+ }
+
+ inventory.put(movie.getImdbId(), movie);
+ return Response.status(Response.Status.CREATED).build();
+ }
+
+ @PUT
+ @Path("/updatemovie")
+ @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
+ public Response updateMovie(Movie movie) {
+
+ System.out.println("*** Calling updateMovie ***");
+
+ if (null == inventory.get(movie.getImdbId())) {
+ return Response.status(Response.Status.NOT_MODIFIED).entity("Movie is not in the database.\nUnable to Update").build();
+ }
+
+ inventory.put(movie.getImdbId(), movie);
+ return Response.status(Response.Status.OK).build();
+ }
+
+ @DELETE
+ @Path("/deletemovie")
+ public Response deleteMovie(@QueryParam("imdbId") String imdbId) {
+
+ System.out.println("*** Calling deleteMovie ***");
+
+ if (null == inventory.get(imdbId)) {
+ return Response.status(Response.Status.NOT_FOUND).entity("Movie is not in the database.\nUnable to Delete").build();
+ }
+
+ inventory.remove(imdbId);
+ return Response.status(Response.Status.OK).build();
+ }
+
+ @GET
+ @Path("/listmovies")
+ @Produces({ "application/json" })
+ public List listMovies() {
+
+ return inventory.values().stream().collect(Collectors.toCollection(ArrayList::new));
+ }
+
+}
diff --git a/RestEasy Example/src/main/java/com/baeldung/server/RestEasyServices.java b/RestEasy Example/src/main/java/com/baeldung/server/RestEasyServices.java
new file mode 100644
index 0000000000..7726e49f38
--- /dev/null
+++ b/RestEasy Example/src/main/java/com/baeldung/server/RestEasyServices.java
@@ -0,0 +1,32 @@
+package com.baeldung.server;
+
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.core.Application;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+@ApplicationPath("/rest")
+public class RestEasyServices extends Application {
+
+ private Set