Model Repository is a REST service that provide storage and lookup operations for domain model documents (XMI, JSON etc). The domain model is represented in Metadata Interchange (XMI) format and different representations (JSON etc) are generated and provided by this service. Here is the description of REST API being exposed by this service:
Endpoint for storing XMI document in the catalog, user provide the model name and actual model Identifier (modelName:version) is generated by the service based on the version increment. As part of this operation, JSON representation is also generated and stored in the catalog. The URL of the new created XMI Resource is returned to the caller.
Returns a specific XMI document.
Methods: GET (retrieve), PUT (update), DELETE (delete)
To retrieve a JSON document for a given model Identifier.
To retrieve the latest XMI document for a given model name.
To retrieve the latest JSON document for a given model name.
To retrieve all XMI documents from a catalog.
To retrieve all XMI documents for a given model name.
It is also possible to store standalone JSON documents those are not directly mapped to some XMI documents as:
Where modelIdentifier is composed of model name and version as (modelName:version).
Methods: GET (retrieve), POST (add), PUT (update), DELETE (delete)
To retrieve all standalone JSON documents from a catalog
To retrieve all JSON documents for a given model name
Model Repository Distribution
From our artifact repository either Snapshot or Release versions of the distribution can be downloaded. Unpack the distribution and consult the README to know about startup and different configuration parameters.