I created a simple entity and then used NetBeans "create rest services from entity" wizard to generate the rest resource. All good so far. It gives a @Path
of the entity package to the resource as follows:
@Stateless
@Path("org.hellorest.entity.project")
public class ProjectFacadeREST extends AbstractFacade<Project> {
@PersistenceContext(unitName = "HelloRestPersistanceUnit")
private EntityManager em;
...
...
}
I am able to hit the end point at localhost:8081/HelloRest/resources/org.hellorest.entity.project/133
I changed the @Path
to @Path("project")
. I am not able to hit the end points at this path. The old longer path still works. What am I missing?