I created a CustomerEndpoint class which has the code below.
@Component
@Scope("singleton")
@Path("/customer/")
@Produces(value = { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Consumes(value = { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
public abstract class CustomerEndpoint extends BaseEndpoint {
@Resource(name="blCustomerService")
protected CustomerService customerService;
@GET
public CustomerWrapper getCustomer(@Context HttpServletRequest request){
CustomerWrapper customerWrapper=new CustomerWrapper();
customerWrapper.wrapDetails(customerService.readCustomerByEmail("sneha@anvayin.com"), request);
System.out.println(customerWrapper);
return customerWrapper;
}
@POST
public CustomerWrapper createCustomer(@Context HttpServletRequest request){
CustomerWrapper customerWrapper=new CustomerWrapper();
customerService.createCustomer();
return customerWrapper;
}
}
I tried accessing the in rest client
by http://localhost:8080/api/v1/customer and http://localhost:8080/customer but both are not working.

Please help me and guide if there are any other things to be configured.
My Broadleaf version -- 3.1.2-GA