Class SchemaMakerResource
java.lang.Object
org.odpi.openmetadata.viewservices.schemamaker.server.spring.SchemaMakerResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/{urlMarker}")
public class SchemaMakerResource
extends Object
The SchemaMakerResource provides part of the server-side implementation of the Schema Maker OMVS.
=
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCalculatedValue(String serverName, String urlMarker, String schemaAttributeGUID, NewClassificationRequestBody requestBody) Add the CalculatedValue classification to a schema element to show that its value is derived by a formula.addPrimaryKeyClassification(String serverName, String urlMarker, String relationalColumnGUID, NewClassificationRequestBody requestBody) Add the PrimaryKey classification to a relational column.addTypeEmbeddedAttribute(String serverName, String urlMarker, String schemaAttributeGUID, NewClassificationRequestBody requestBody) Add the TypeEmbeddedAttribute classification to a schema attribute.createSchemaAttribute(String serverName, String urlMarker, NewElementRequestBody requestBody) Create a schema attribute.createSchemaAttributeFromTemplate(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.createSchemaType(String serverName, String urlMarker, NewElementRequestBody requestBody) Create a schema type.createSchemaTypeFromTemplate(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent a schema type using an existing metadata element as a template.deleteSchemaAttribute(String serverName, String urlMarker, String schemaAttributeGUID, DeleteElementRequestBody requestBody) Delete a schema attribute.deleteSchemaType(String serverName, String urlMarker, String schemaTypeGUID, DeleteElementRequestBody requestBody) Delete a schema type.detachAPIHeader(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its header.detachAPIOperations(String serverName, String urlMarker, String apiSchemaTypeGUID, String apiOperationGUID, DeleteRelationshipRequestBody requestBody) Detach an API operation from the API schema type that contained it.detachAPIRequest(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its request.detachAPIResponse(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its response.detachAttributeForSchema(String serverName, String urlMarker, String schemaTypeGUID, String nestedSchemaAttributeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema attribute from the schema type that it belongs to.detachExternalSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach an external schema type from the schema element that uses it.detachForeignKey(String serverName, String urlMarker, String primaryKeyColumnGUID, String foreignKeyColumnGUID, DeleteRelationshipRequestBody requestBody) Detach a foreign key column from the primary key column that it refers to.detachGraphEdge(String serverName, String urlMarker, String graphEdgeGUID, String graphVertexGUID, DeleteRelationshipRequestBody requestBody) Detach a graph edge from one of the graph vertices that it connects.detachMapFromSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach the schema type that describes the domain (from) element of a map.detachMapToSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach the schema type that describes the range (to) element of a map.detachNestedSchemaAttribute(String serverName, String urlMarker, String schemaAttributeGUID, String nestedSchemaAttributeGUID, DeleteRelationshipRequestBody requestBody) Detach a nested schema attribute from its parent schema attribute.detachQueryTarget(String serverName, String urlMarker, String schemaElementGUID, String queryTargetSchemaElementGUID, DeleteRelationshipRequestBody requestBody) Detach a query target from the derived schema element that queries it.detachRelationalDBSchema(String serverName, String urlMarker, String databaseSchemaTypeListGUID, String relationalDBSchemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a relational database schema type from the list that contained it.detachSchema(String serverName, String urlMarker, String elementGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema type from the element that it describes.detachSchemaTypeOption(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, DeleteRelationshipRequestBody requestBody) Detach a schema type from a schema element that may optionally have used it.findSchemaAttributes(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of schema attribute metadata elements that contain the search string.findSchemaTypes(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of schema type metadata elements that contain the search string.getSchemaAttributeByGUID(String serverName, String urlMarker, String schemaAttributeGUID, GetRequestBody requestBody) Return the properties of a specific schema attribute.getSchemaAttributesByName(String serverName, String urlMarker, FilterRequestBody requestBody) Returns the list of schema attributes with a particular name.getSchemaTypeByGUID(String serverName, String urlMarker, String schemaTypeGUID, GetRequestBody requestBody) Return the properties of a specific schema type.getSchemaTypesByName(String serverName, String urlMarker, FilterRequestBody requestBody) Returns the list of schema types with a particular name.linkAPIHeader(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its header.linkAPIOperations(String serverName, String urlMarker, String apiSchemaTypeGUID, String apiOperationGUID, NewRelationshipRequestBody requestBody) Attach an API operation to the API schema type that contains it.linkAPIRequest(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its request.linkAPIResponse(String serverName, String urlMarker, String apiOperationGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its response.linkAttributeForSchema(String serverName, String urlMarker, String schemaTypeGUID, String nestedSchemaAttributeGUID, NewRelationshipRequestBody requestBody) Attach a schema attribute to the schema type that it belongs to.linkExternalSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach an external schema type to the schema element that uses it.linkForeignKey(String serverName, String urlMarker, String primaryKeyColumnGUID, String foreignKeyColumnGUID, NewRelationshipRequestBody requestBody) Attach a foreign key column to the primary key column that it refers to.linkGraphEdge(String serverName, String urlMarker, String graphEdgeGUID, String graphVertexGUID, NewRelationshipRequestBody requestBody) Attach a graph edge to one of the graph vertices that it connects.linkMapFromSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach the schema type that describes the domain (from) element of a map.linkMapToSchemaType(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach the schema type that describes the range (to) element of a map.linkNestedSchemaAttribute(String serverName, String urlMarker, String schemaAttributeGUID, String nestedSchemaAttributeGUID, NewRelationshipRequestBody requestBody) Attach a nested schema attribute to its parent schema attribute.linkQueryTarget(String serverName, String urlMarker, String schemaElementGUID, String queryTargetSchemaElementGUID, NewRelationshipRequestBody requestBody) Attach a query target to the derived schema element that queries it.linkRelationalDBSchema(String serverName, String urlMarker, String databaseSchemaTypeListGUID, String relationalDBSchemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a relational database schema type to the list that contains it.linkSchema(String serverName, String urlMarker, String elementGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a schema type to the element that it describes.linkSchemaTypeOption(String serverName, String urlMarker, String schemaElementGUID, String schemaTypeGUID, NewRelationshipRequestBody requestBody) Attach a schema type to a schema element that may optionally use it.removeCalculatedValue(String serverName, String urlMarker, String schemaAttributeGUID, DeleteClassificationRequestBody requestBody) Remove the CalculatedValue classification from a schema element.removePrimaryKeyClassification(String serverName, String urlMarker, String relationalColumnGUID, DeleteClassificationRequestBody requestBody) Remove the PrimaryKey classification from a relational column.removeTypeEmbeddedAttribute(String serverName, String urlMarker, String schemaAttributeGUID, DeleteClassificationRequestBody requestBody) Remove the TypeEmbeddedAttribute classification from a schema attribute.updateSchemaAttribute(String serverName, String urlMarker, String schemaAttributeGUID, UpdateElementRequestBody requestBody) Update the properties of a schema attribute.updateSchemaType(String serverName, String urlMarker, String schemaTypeGUID, UpdateElementRequestBody requestBody) Update the properties of a schema type.
-
Constructor Details
-
SchemaMakerResource
public SchemaMakerResource()Default constructor
-
-
Method Details
-
createSchemaType
@PostMapping(path="/schema-types") public GUIDResponse createSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) NewElementRequestBody requestBody) Create a schema type.- Parameters:
serverName- name of called server.urlMarker- view service URL markerrequestBody- properties for the schema type.- Returns:
- unique identifier of the newly created element InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createSchemaTypeFromTemplate
@PostMapping(path="/schema-types/from-template") public GUIDResponse createSchemaTypeFromTemplate(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) TemplateRequestBody requestBody) Create a new metadata element to represent a schema type using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
serverName- calling userurlMarker- view service URL markerrequestBody- properties that override the template- Returns:
- unique identifier of the new metadata element InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
updateSchemaType
@PostMapping(path="/schema-types/{schemaTypeGUID}/update") public BooleanResponse updateSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaTypeGUID, @RequestBody(required=false) UpdateElementRequestBody requestBody) Update the properties of a schema type.- Parameters:
serverName- name of called server.urlMarker- view service URL markerschemaTypeGUID- unique identifier of the schema type (returned from create)requestBody- properties for the new element.- Returns:
- boolean or InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
deleteSchemaType
@PostMapping(path="/schema-types/{schemaTypeGUID}/delete") public VoidResponse deleteSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteElementRequestBody requestBody) Delete a schema type.- Parameters:
serverName- name of called serverurlMarker- view service URL markerschemaTypeGUID- unique identifier of the element to deleterequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getSchemaTypesByName
@PostMapping(path="/schema-types/by-name") public OpenMetadataRootElementsResponse getSchemaTypesByName(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) FilterRequestBody requestBody) Returns the list of schema types with a particular name.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
findSchemaTypes
@PostMapping(path="/schema-types/by-search-string") public OpenMetadataRootElementsResponse findSchemaTypes(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) SearchStringRequestBody requestBody) Retrieve the list of schema type metadata elements that contain the search string.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
getSchemaTypeByGUID
@PostMapping(path="/schema-types/{schemaTypeGUID}/retrieve") public OpenMetadataRootElementResponse getSchemaTypeByGUID(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaTypeGUID, @RequestBody(required=false) GetRequestBody requestBody) Return the properties of a specific schema type.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerschemaTypeGUID- unique identifier of the required elementrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
createSchemaAttribute
@PostMapping(path="/schema-attributes") public GUIDResponse createSchemaAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) NewElementRequestBody requestBody) Create a schema attribute.- Parameters:
serverName- name of called server.urlMarker- view service URL markerrequestBody- properties for the schema attribute.- Returns:
- unique identifier of the newly created element InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createSchemaAttributeFromTemplate
@PostMapping(path="/schema-attributes/from-template") public GUIDResponse createSchemaAttributeFromTemplate(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) TemplateRequestBody requestBody) Create a new metadata element to represent a schema attribute using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
serverName- calling userurlMarker- view service URL markerrequestBody- properties that override the template- Returns:
- unique identifier of the new metadata element InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
updateSchemaAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/update") public BooleanResponse updateSchemaAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) UpdateElementRequestBody requestBody) Update the properties of a schema attribute.- Parameters:
serverName- name of called server.urlMarker- view service URL markerschemaAttributeGUID- unique identifier of the schema attribute (returned from create)requestBody- properties for the new element.- Returns:
- void or InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
deleteSchemaAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/delete") public VoidResponse deleteSchemaAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) DeleteElementRequestBody requestBody) Delete a schema attribute.- Parameters:
serverName- name of called serverurlMarker- view service URL markerschemaAttributeGUID- unique identifier of the element to deleterequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getSchemaAttributesByName
@PostMapping(path="/schema-attributes/by-name") public OpenMetadataRootElementsResponse getSchemaAttributesByName(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) FilterRequestBody requestBody) Returns the list of schema attributes with a particular name.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
findSchemaAttributes
@PostMapping(path="/schema-attributes/by-search-string") public OpenMetadataRootElementsResponse findSchemaAttributes(@PathVariable String serverName, @PathVariable String urlMarker, @RequestBody(required=false) SearchStringRequestBody requestBody) Retrieve the list of schema attribute metadata elements that contain the search string.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
getSchemaAttributeByGUID
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/retrieve") public OpenMetadataRootElementResponse getSchemaAttributeByGUID(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) GetRequestBody requestBody) Return the properties of a specific schema attribute.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the required elementrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkNestedSchemaAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/nested-schema-attributes/{nestedSchemaAttributeGUID}/attach") public VoidResponse linkNestedSchemaAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @PathVariable String nestedSchemaAttributeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a nested schema attribute to its parent schema attribute.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the parent schema attributenestedSchemaAttributeGUID- unique identifier of the nested schema attributerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachNestedSchemaAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/nested-schema-attributes/{nestedSchemaAttributeGUID}/detach") public VoidResponse detachNestedSchemaAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @PathVariable String nestedSchemaAttributeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a nested schema attribute from its parent schema attribute.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the parent schema attributenestedSchemaAttributeGUID- unique identifier of the nested schema attributerequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkAttributeForSchema
@PostMapping(path="/schema-types/{schemaTypeGUID}/attribute-for-schema/{nestedSchemaAttributeGUID}/attach") public VoidResponse linkAttributeForSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaTypeGUID, @PathVariable String nestedSchemaAttributeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema attribute to the schema type that it belongs to.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaTypeGUID- unique identifier of the schema typenestedSchemaAttributeGUID- unique identifier of the schema attributerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachAttributeForSchema
@PostMapping(path="/schema-types/{schemaTypeGUID}/attribute-for-schema/{nestedSchemaAttributeGUID}/detach") public VoidResponse detachAttributeForSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaTypeGUID, @PathVariable String nestedSchemaAttributeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema attribute from the schema type that it belongs to.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaTypeGUID- unique identifier of the schema typenestedSchemaAttributeGUID- unique identifier of the schema attributerequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkForeignKey
@PostMapping(path="/schema-attributes/{primaryKeyColumnGUID}/foreign-keys/{foreignKeyColumnGUID}/attach") public VoidResponse linkForeignKey(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String primaryKeyColumnGUID, @PathVariable String foreignKeyColumnGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a foreign key column to the primary key column that it refers to.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerprimaryKeyColumnGUID- unique identifier of the primary key columnforeignKeyColumnGUID- unique identifier of the foreign key columnrequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachForeignKey
@PostMapping(path="/schema-attributes/{primaryKeyColumnGUID}/foreign-keys/{foreignKeyColumnGUID}/detach") public VoidResponse detachForeignKey(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String primaryKeyColumnGUID, @PathVariable String foreignKeyColumnGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a foreign key column from the primary key column that it refers to.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerprimaryKeyColumnGUID- unique identifier of the primary key columnforeignKeyColumnGUID- unique identifier of the foreign key columnrequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkExternalSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/linked-external-schema-types/{schemaTypeGUID}/attach") public VoidResponse linkExternalSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach an external schema type to the schema element that uses it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the schema elementschemaTypeGUID- unique identifier of the external schema typerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachExternalSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/linked-external-schema-types/{schemaTypeGUID}/detach") public VoidResponse detachExternalSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach an external schema type from the schema element that uses it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the schema elementschemaTypeGUID- unique identifier of the external schema typerequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkMapFromSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/map-from-element-types/{schemaTypeGUID}/attach") public VoidResponse linkMapFromSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach the schema type that describes the domain (from) element of a map.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the map schema elementschemaTypeGUID- unique identifier of the schema type describing the domain of the maprequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachMapFromSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/map-from-element-types/{schemaTypeGUID}/detach") public VoidResponse detachMapFromSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach the schema type that describes the domain (from) element of a map.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the map schema elementschemaTypeGUID- unique identifier of the schema type describing the domain of the maprequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkMapToSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/map-to-element-types/{schemaTypeGUID}/attach") public VoidResponse linkMapToSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach the schema type that describes the range (to) element of a map.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the map schema elementschemaTypeGUID- unique identifier of the schema type describing the range of the maprequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachMapToSchemaType
@PostMapping(path="/schema-elements/{schemaElementGUID}/map-to-element-types/{schemaTypeGUID}/detach") public VoidResponse detachMapToSchemaType(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach the schema type that describes the range (to) element of a map.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the map schema elementschemaTypeGUID- unique identifier of the schema type describing the range of the maprequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkGraphEdge
@PostMapping(path="/graph-edges/{graphEdgeGUID}/graph-vertices/{graphVertexGUID}/attach") public VoidResponse linkGraphEdge(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String graphEdgeGUID, @PathVariable String graphVertexGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a graph edge to one of the graph vertices that it connects.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markergraphEdgeGUID- unique identifier of the graph edgegraphVertexGUID- unique identifier of the graph vertexrequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachGraphEdge
@PostMapping(path="/graph-edges/{graphEdgeGUID}/graph-vertices/{graphVertexGUID}/detach") public VoidResponse detachGraphEdge(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String graphEdgeGUID, @PathVariable String graphVertexGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a graph edge from one of the graph vertices that it connects.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markergraphEdgeGUID- unique identifier of the graph edgegraphVertexGUID- unique identifier of the graph vertexrequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkQueryTarget
@PostMapping(path="/schema-elements/{schemaElementGUID}/query-targets/{queryTargetSchemaElementGUID}/attach") public VoidResponse linkQueryTarget(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String queryTargetSchemaElementGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a query target to the derived schema element that queries it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the derived schema elementqueryTargetSchemaElementGUID- unique identifier of the schema element supplying the query targetrequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachQueryTarget
@PostMapping(path="/schema-elements/{schemaElementGUID}/query-targets/{queryTargetSchemaElementGUID}/detach") public VoidResponse detachQueryTarget(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String queryTargetSchemaElementGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a query target from the derived schema element that queries it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the derived schema elementqueryTargetSchemaElementGUID- unique identifier of the schema element supplying the query targetrequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkSchema
@PostMapping(path="/elements/{elementGUID}/schema-types/{schemaTypeGUID}/attach") public VoidResponse linkSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String elementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema type to the element that it describes.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerelementGUID- unique identifier of the element that is described by the schema typeschemaTypeGUID- unique identifier of the schema typerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachSchema
@PostMapping(path="/elements/{elementGUID}/schema-types/{schemaTypeGUID}/detach") public VoidResponse detachSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String elementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema type from the element that it describes.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerelementGUID- unique identifier of the element that is described by the schema typeschemaTypeGUID- unique identifier of the schema typerequestBody- delete options- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkRelationalDBSchema
@PostMapping(path="/relational-db-schema-type-lists/{databaseSchemaTypeListGUID}/relational-db-schemas/{relationalDBSchemaTypeGUID}/attach") public VoidResponse linkRelationalDBSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String databaseSchemaTypeListGUID, @PathVariable String relationalDBSchemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a relational database schema type to the list that contains it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerdatabaseSchemaTypeListGUID- unique identifier of the relational database schema type listrelationalDBSchemaTypeGUID- unique identifier of the relational database schema typerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachRelationalDBSchema
@PostMapping(path="/relational-db-schema-type-lists/{databaseSchemaTypeListGUID}/relational-db-schemas/{relationalDBSchemaTypeGUID}/detach") public VoidResponse detachRelationalDBSchema(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String databaseSchemaTypeListGUID, @PathVariable String relationalDBSchemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a relational database schema type from the list that contained it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerdatabaseSchemaTypeListGUID- unique identifier of the relational database schema type listrelationalDBSchemaTypeGUID- unique identifier of the relational database schema typerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
addPrimaryKeyClassification
@PostMapping(path="/relational-columns/{relationalColumnGUID}/primary-key") public VoidResponse addPrimaryKeyClassification(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String relationalColumnGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody) Add the PrimaryKey classification to a relational column.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerrelationalColumnGUID- unique identifier of the relational columnrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
removePrimaryKeyClassification
@PostMapping(path="/relational-columns/{relationalColumnGUID}/primary-key/remove") public VoidResponse removePrimaryKeyClassification(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String relationalColumnGUID, @RequestBody(required=false) DeleteClassificationRequestBody requestBody) Remove the PrimaryKey classification from a relational column.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerrelationalColumnGUID- unique identifier of the relational columnrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
addTypeEmbeddedAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/type-embedded-attribute") public VoidResponse addTypeEmbeddedAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody) Add the TypeEmbeddedAttribute classification to a schema attribute.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the schema attributerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
removeTypeEmbeddedAttribute
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/type-embedded-attribute/remove") public VoidResponse removeTypeEmbeddedAttribute(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) DeleteClassificationRequestBody requestBody) Remove the TypeEmbeddedAttribute classification from a schema attribute.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the schema attributerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
addCalculatedValue
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/calculated-value") public VoidResponse addCalculatedValue(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody) Add the CalculatedValue classification to a schema element to show that its value is derived by a formula.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the schema attributerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
removeCalculatedValue
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/calculated-value/remove") public VoidResponse removeCalculatedValue(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaAttributeGUID, @RequestBody(required=false) DeleteClassificationRequestBody requestBody) Remove the CalculatedValue classification from a schema element.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaAttributeGUID- unique identifier of the schema attributerequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkAPIOperations
@PostMapping(path="/api-schema-types/{apiSchemaTypeGUID}/api-operations/{apiOperationGUID}/attach") public VoidResponse linkAPIOperations(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiSchemaTypeGUID, @PathVariable String apiOperationGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach an API operation to the API schema type that contains it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiSchemaTypeGUID- unique identifier of the API schema typeapiOperationGUID- unique identifier of the API operationrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachAPIOperations
@PostMapping(path="/api-schema-types/{apiSchemaTypeGUID}/api-operations/{apiOperationGUID}/detach") public VoidResponse detachAPIOperations(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiSchemaTypeGUID, @PathVariable String apiOperationGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach an API operation from the API schema type that contained it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiSchemaTypeGUID- unique identifier of the API schema typeapiOperationGUID- unique identifier of the API operationrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkAPIHeader
@PostMapping(path="/api-operations/{apiOperationGUID}/api-headers/{schemaTypeGUID}/attach") public VoidResponse linkAPIHeader(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its header.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the headerrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachAPIHeader
@PostMapping(path="/api-operations/{apiOperationGUID}/api-headers/{schemaTypeGUID}/detach") public VoidResponse detachAPIHeader(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its header.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the headerrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkAPIRequest
@PostMapping(path="/api-operations/{apiOperationGUID}/api-requests/{schemaTypeGUID}/attach") public VoidResponse linkAPIRequest(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its request.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the requestrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachAPIRequest
@PostMapping(path="/api-operations/{apiOperationGUID}/api-requests/{schemaTypeGUID}/detach") public VoidResponse detachAPIRequest(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its request.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the requestrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkAPIResponse
@PostMapping(path="/api-operations/{apiOperationGUID}/api-responses/{schemaTypeGUID}/attach") public VoidResponse linkAPIResponse(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema type to the API operation that uses it as its response.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the responserequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachAPIResponse
@PostMapping(path="/api-operations/{apiOperationGUID}/api-responses/{schemaTypeGUID}/detach") public VoidResponse detachAPIResponse(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String apiOperationGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema type from the API operation that used it as its response.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerapiOperationGUID- unique identifier of the API operationschemaTypeGUID- unique identifier of the schema type describing the responserequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
linkSchemaTypeOption
@PostMapping(path="/schema-elements/{schemaElementGUID}/schema-type-options/{schemaTypeGUID}/attach") public VoidResponse linkSchemaTypeOption(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a schema type to a schema element that may optionally use it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the schema elementschemaTypeGUID- unique identifier of the schema type that is one of its optionsrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
detachSchemaTypeOption
@PostMapping(path="/schema-elements/{schemaElementGUID}/schema-type-options/{schemaTypeGUID}/detach") public VoidResponse detachSchemaTypeOption(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String schemaElementGUID, @PathVariable String schemaTypeGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a schema type from a schema element that may optionally have used it.- Parameters:
serverName- name of the server to route the request tourlMarker- view service URL markerschemaElementGUID- unique identifier of the schema elementschemaTypeGUID- unique identifier of the schema type that is one of its optionsrequestBody- properties for the request- Returns:
- response object InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-