package test_domain.RESTEASY_519_reproducer.resources;

import java.util.Collections;
import java.util.Comparator;
import java.util.Map.Entry;

import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

import test_domain.RESTEASY_519_reproducer.domain.BookType;


/**
 * This is a books Resource, used in the scope of the Reproducer for RESTEASY-519.
 *  Please refer to the  xsd representation 
 * @author amoussa
 *
 */
@Singleton
@Named("booksResource")
@Path("/books")
public class BookResource
{
	

	/**
	 * creates a new phrase resource posted via XML/JSON and returns 200 OK if success
	 * @param pt
	 * @param uriInfo
	 * @return
	 */
	@POST
	@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
	public Response save(BookType bk, @Context UriInfo uriInfo)
	{
		
		return Response.ok().build();
	}


}
