// Path: src/main/java/org/geekmj/domain/Movie.java
// public class Movie {
// 	private Long id;
// 	private String title;
// 	private Integer releaseYear;
// 	private Float imdbRating;
// 	private List<Actor> actors;
// 
// 	public Long getId() {
// 		return id;
// 	}
// 
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 
// 	public String getTitle() {
// 		return title;
// 	}
// 
// 	public void setTitle(String title) {
// 		this.title = title;
// 	}
// 
// 	public Integer getReleaseYear() {
// 		return releaseYear;
// 	}
// 
// 	public void setReleaseYear(Integer releaseYear) {
// 		this.releaseYear = releaseYear;
// 	}
// 
// 	public Float getImdbRating() {
// 		return imdbRating;
// 	}
// 
// 	public void setImdbRating(Float imdbRating) {
// 		this.imdbRating = imdbRating;
// 	}
// 
// 	public List<Actor> getActors() {
// 		return actors;
// 	}
// 
// 	public void setActors(List<Actor> actors) {
// 		this.actors = actors;
// 	}
// 
// }


import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.geekmj.domain.Movie;
package org.geekmj.resource;



@Path("/json-payload")
public class JsonPayloadResource {

	/**
	 * This Resource method takes HTTP entity pay-load in JSON format. 
	 * This Resource method gives back HTTP entity pay-load in JSON format. 
	 * Jackson is the default JSON Entity provider for Spring Boot + Jersey application.
	 * It convert JSON in the pay-load to Java Object. 
	 * It also convert Java Object to JSON.
	 */

	@POST
	@Path("/movie")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes(MediaType.APPLICATION_JSON)
// Path: src/main/java/org/geekmj/domain/Movie.java
// public class Movie {
// 	private Long id;
// 	private String title;
// 	private Integer releaseYear;
// 	private Float imdbRating;
// 	private List<Actor> actors;
// 
// 	public Long getId() {
// 		return id;
// 	}
// 
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 
// 	public String getTitle() {
// 		return title;
// 	}
// 
// 	public void setTitle(String title) {
// 		this.title = title;
// 	}
// 
// 	public Integer getReleaseYear() {
// 		return releaseYear;
// 	}
// 
// 	public void setReleaseYear(Integer releaseYear) {
// 		this.releaseYear = releaseYear;
// 	}
// 
// 	public Float getImdbRating() {
// 		return imdbRating;
// 	}
// 
// 	public void setImdbRating(Float imdbRating) {
// 		this.imdbRating = imdbRating;
// 	}
// 
// 	public List<Actor> getActors() {
// 		return actors;
// 	}
// 
// 	public void setActors(List<Actor> actors) {
// 		this.actors = actors;
// 	}
// 
// }


// Path: src/main/java/org/geekmj/resource/JsonPayloadResource.java
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.geekmj.domain.Movie;

package org.geekmj.resource;



@Path("/json-payload")
public class JsonPayloadResource {

	/**
	 * This Resource method takes HTTP entity pay-load in JSON format. 
	 * This Resource method gives back HTTP entity pay-load in JSON format. 
	 * Jackson is the default JSON Entity provider for Spring Boot + Jersey application.
	 * It convert JSON in the pay-load to Java Object. 
	 * It also convert Java Object to JSON.
	 */

	@POST
	@Path("/movie")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes(MediaType.APPLICATION_JSON)
	public Movie takeAndGiveMovie(final Movie movie) {