package org.jboss.resteasy.test.cdi.basic.resource;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.jboss.resteasy.test.cdi.util.Constants;

public interface DecoratorsResourceIntf {
    @POST
    @Path("create")
    @Consumes(Constants.MEDIA_TYPE_TEST_XML)
    @Produces(MediaType.TEXT_PLAIN)
    @DecoratorsFilterBinding
    @DecoratorsResourceBinding
    Response createBook(EJBBook book);

    @GET
    @Path("book/{id:[0-9][0-9]*}")
    @Produces(Constants.MEDIA_TYPE_TEST_XML)
    @DecoratorsFilterBinding
    @DecoratorsResourceBinding
    EJBBook lookupBookById(@PathParam("id") int id);

    @POST
    @Path("test")
    @Produces(MediaType.TEXT_PLAIN)
    Response test();

}
