Class MetadataResource

java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.MetadataResource

@Produces("application/json") @Consumes("application/json") @Path("/{version : v\\d\\.\\d|latest}/{context}/metadata-catalog/") public class MetadataResource extends AbstractResource
JPARS 2.0 metadata catalog. Resource metadata and schemas.
Author:
Dmitry Kornilov
  • Constructor Details

    • MetadataResource

      public MetadataResource()
  • Method Details

    • getMetadataCatalog

      @GET public jakarta.ws.rs.core.Response getMetadataCatalog(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo uriInfo)
      Returns metadata catalog.
    • getEntityResource

      @GET @Produces({"application/json","application/schema+json"}) @Consumes({"application/json","application/schema+json"}) @Path("entity/{entityName}") public jakarta.ws.rs.core.Response getEntityResource(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("entityName") String entityName, @Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo uriInfo)
      Returns entity metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'.
    • getQueryResource

      @GET @Produces({"application/json","application/schema+json"}) @Consumes({"application/json","application/schema+json"}) @Path("query/{queryName}") public jakarta.ws.rs.core.Response getQueryResource(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("queryName") String queryName, @Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo uriInfo)
      Returns query metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'.