Class SchemaResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.SchemaResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class SchemaResource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OBJECTGROUP_SCHEMA_URI
static java.lang.String
UNIT_SCHEMA_URI
-
Constructor Summary
Constructors Constructor Description SchemaResource(SchemaService schemaService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteUnitExternalSchemas(java.util.List<java.lang.String> paths)
javax.ws.rs.core.Response
importExternalSchemaElements(java.util.List<SchemaInputModel> externalSchemaList, javax.ws.rs.core.UriInfo uri)
Import a set of external schema.javax.ws.rs.core.Response
objectGroupSchema()
javax.ws.rs.core.Response
unitSchema()
Api to return unit schema
-
-
-
Field Detail
-
UNIT_SCHEMA_URI
public static final java.lang.String UNIT_SCHEMA_URI
- See Also:
- Constant Field Values
-
OBJECTGROUP_SCHEMA_URI
public static final java.lang.String OBJECTGROUP_SCHEMA_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SchemaResource
public SchemaResource(SchemaService schemaService)
-
-
Method Detail
-
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(java.util.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
@Path("/schema/unit") @DELETE @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response deleteUnitExternalSchemas(java.util.List<java.lang.String> paths)
-
-