All Implemented Interfaces:
RestResource

@Path("/entities/2.0/{name}/{pk: (?!.*((multi)|(search)|(count)|(model)))[^/]+ }") public class EntityResource extends AbstractEntityResource
This resource provides a single entity (a single record).

Resource is mapped to "/entities/{name}/{pk}" ("pk" can be everything except of "multi", "search", "count" and "model", because there would be a conflict with methods in EntitiesResource).

  • Constructor Details

  • Method Details

    • getEntity

      @GET @Produces("application/json") public EntityBean getEntity(@PathParam("name") String modelName, @PathParam("pk") String pk)
    • getEntityViaPost

      @POST @Consumes("application/json") @Produces("application/json") public EntityBean getEntityViaPost(@PathParam("name") String modelName, @PathParam("pk") String pk, EntityFetchBean entityFetchBean)
    • patchEntity

      @PATCH @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response patchEntity(@PathParam("name") String modelName, @PathParam("pk") String pk, EntityBean entityBean)
    • deleteEntity

      @DELETE @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response deleteEntity(@PathParam("name") String modelName, @PathParam("pk") String pk, @Nullable @Nullable EntityBean[] excludedBeans)