Class SchemaResource


  • @Path("/adminmanagement/v1")
    @ApplicationPath("webresources")
    public class SchemaResource
    extends java.lang.Object
    • Field Detail

      • 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 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​(java.util.List<java.lang.String> paths)