Class SchemaResource

java.lang.Object
fr.gouv.vitam.functional.administration.rest.SchemaResource

@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class SchemaResource extends Object
  • Field Details

  • Constructor Details

    • SchemaResource

      public SchemaResource(SchemaService schemaService)
  • Method Details

    • unitSchema

      @Path("/schema/unit") @GET @Produces("application/json") public javax.ws.rs.core.Response unitSchema()
      Api to return unit schema
      Returns:
    • objectGroupSchema

      @Path("/schema/objectgroup") @GET @Produces("application/json") public javax.ws.rs.core.Response objectGroupSchema()
    • importExternalSchemaElements

      @Path("/schema/unit") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response importExternalSchemaElements(List<SchemaInputModel> externalSchemaList, @Context javax.ws.rs.core.UriInfo uri)
      Import a set of external schema.
      The input is invalid in the following situations :
      • The json is invalid
      • The json contains an already used path
      • One or more mandatory field is missing
      • A field has an invalid format
      Parameters:
      externalSchemaList - as InputStream
      uri - the uri info
      Returns:
      Response
    • deleteUnitExternalSchemas

      @Path("/schema/unit") @DELETE @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response deleteUnitExternalSchemas(List<String> paths)