http://cwiki.apache.org/CXF20DOC/jax-rs.html

is there a complete download of the project someplace?

*** Noticed there is no class "Customers" nor "Product"

*** What is the definition that results in the following output for
Customer and Customers?
GET http://foobar.com/api/customers
<customers>
    <customer id="1005">John Doe</customer>
    <customer id="1006">Jane Doe</customer>
    ...
</customers>

*** CODE IN INTERFACES?
public interface CustomerService {
    @PUT
    @Path("/customers/{id}")
    Response updateCustomer(@PathParam("id") Long id, Customer customer) {
        return Response.status(errorCode).build();
    }
    @POST
    @Path("/customers")
    Customer addCustomer(Customer customer) {
        throw new WebApplicationException(errorCode);
    }
}

thanks,

Reply via email to