@RestController @RequestMapping(value="/open-metadata/access-services/subject-area") public class SubjectAreaGlossaryRESTResource extends SubjectAreaRESTServices
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaGlossaryRESTResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
createGlossary(String userid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary suppliedGlossary)
Create a Glossary.
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
deleteGlossary(String userid,
String guid,
Boolean isPurge)
Delete a Glossary instance
The deletion of a glossary is only allowed if there is no glossary content (i.e.
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
getGlossary(String userid,
String id,
Boolean idIsName)
Get a glossary.
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
updateGlossary(String userid,
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary,
Boolean isReplace)
Update a Glossary
If the caller has chosen to incorporate the glossary name in their Glossary Terms or Categories qualified name, renaming the glossary will cause those
qualified names to mismatch the Glossary name.
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic SubjectAreaGlossaryRESTResource()
@RequestMapping(method=POST,
path="/users/{userid}/glossaries")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse createGlossary(@PathVariable
String userid,
@RequestBody
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary suppliedGlossary)
Valid nodeTypes for this request are:
userid - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to create@RequestMapping(method=GET,
path="/users/{userid}/glossaries/{id}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse getGlossary(@PathVariable
String userid,
@PathVariable
String id,
@RequestParam(value="idIsName",required=false)
Boolean idIsName)
userid - userid under which the request is performedid - id of the glossary to get, this can be a name or a guid depending on theidIsName - When set this indicates that the id is a name@RequestMapping(method=PUT,
path="/users/{userid}/glossaries/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse updateGlossary(@PathVariable
String userid,
@PathVariable
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary,
@RequestParam(value="isReplace",required=false)
Boolean isReplace)
userid - userid under which the request is performedguid - guid of the glossary to updateglossary - glossary to be updatedisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated. * @return a response which when successful contains the updated glossary
when not successful the following Exception responses can occur
@RequestMapping(method=DELETE,
path="/users/{userid}/glossaries/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse deleteGlossary(@PathVariable
String userid,
@PathVariable
String guid,
@RequestParam(value="isPurge",required=false)
Boolean isPurge)
userid - userid under which the request is performedguid - guid of the glossary to be deleted.isPurge - true indicates a hard delete, false is a soft delete.Copyright © 2018 ODPi. All rights reserved.