Classifier
A Classifier is a container type and can be represented as follows:
1 2 3 4 5 6 7 |
|
The fields are as follows:
- id (UUID): The unique identifier of this classifier
- domainType (Type): The domain type of this catalogue object. Will always be
Classification
in this case. - label (String): The human-readable identifier of this classifier.
- description (String): A long description of the classifier, and any important characteristics of the data. This field may include HTML, or MarkDown.
- lastUpdated (DateTime): The date/time when this Classifier was last modified
As well as the endpoints listed below, a Classifier is also a CatalogueItem, and so a Classifier identifier can also be used as the parameter to any of those endpoints
Child Classifiers¶
A classifier may contain child classifiers. Endpoints are provided to differentiate between parent and child classifiers.
Getting information¶
The following endpoints returns a paginated list of all the Classifiers. The first requests all root classifiers in Mauro, the second requests the classifiers for a parent classifier.
These endpoints provide the detailed information about a particular Classifier; the first requests a root classifier in Mauro, the second requests a classifier from a parent classifier.
Finally, these endpoints request a list of catalogue items mapped to a classifier, and the inverse to list all classifiers mapped to a catalogue item, respectively.
Create / Update / Delete¶
To create a new Classifier from scratch, use the following post endpoints, depending on whether to create one with or without a parent.
To edit the properties of a Classifier, use the following endpoints, with a body similar to the JSON described at the top of this page. Use the appropriate endpoint depending on whether to edit one with or without a parent.
To delete a Classifier, use the following endpoint, depending on whether to delete one with or without a parent. The permanent parameter is a boolean value that controls whether a 'hard' or 'soft' delete is used if the user is an administrator.