Currently my rest resources look like this:
@GET
@Override
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
public List<Customer> findAll() {
return super.findAll();
}
From the looks of it, I feel like
curl -v -H "Accept:application/json" -H "Accept-encoding:gzip" http://localhost:8080/mavenproject1/webresources/com.mycom.mavenproject1.customer
should get me a response in JSON but, I get an error instead. How can I force a JSON response with JAX-RS?