Class SchemaResource
java.lang.Object
fr.gouv.vitam.functional.administration.rest.SchemaResource
@Path("/adminmanagement/v1")
@ApplicationPath("webresources")
public class SchemaResource
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
deleteUnitExternalSchemas
(List<String> paths) javax.ws.rs.core.Response
importExternalSchemaElements
(List<SchemaInputModel> externalSchemaList, javax.ws.rs.core.UriInfo uri) Import a set of external schema.javax.ws.rs.core.Response
javax.ws.rs.core.Response
Api to return unit schema
-
Field Details
-
UNIT_SCHEMA_URI
- See Also:
-
OBJECTGROUP_SCHEMA_URI
- See Also:
-
-
Constructor Details
-
SchemaResource
-
-
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 InputStreamuri
- the uri info- Returns:
- Response
-
deleteUnitExternalSchemas
-