Download OpenAPI specification:
REST API for interacting with internal MSOSA model data
Base URL (default): 'http://localhost:8090/mb/v2'
Retrieve a list of model elements with optional filtering and pagination
| filter | string Default: null Example: filter=name eq 'Widget' or (class eq 'LiteralReal' and value gt 0.5) Filter expression for elements. Supports operators eq, ne, gt, ge, lt, le, or, and, not and parentheses (). |
| select | string Default: null Example: select=name, id, value Select specific properties to return |
| limit | integer [ 1 .. 100000 ] Default: 100 Example: limit=100 Maximum number of results to return (1-100000). |
| offset | integer >= 0 Default: 0 Example: offset=10 Number of results to skip. |
| aux | boolean Default: false Example: aux=true Include auxiliary elements. |
| expand | string Default: null Example: expand=ownedElement($select=name,ID;$filter=class eq 'Property') expand related entities. supports nested $select, $filter and $expand |
[- {
- "appliedStereotype": [
- {
- "id": "string",
- "name": "string"
}
], - "class": "Abstraction",
- "client": [
- {
- "id": "string",
- "name": "string"
}
], - "clientDependency": [
- {
- "id": "string",
- "name": "string"
}
], - "ID": "string",
- "mapping": {
- "id": "string",
- "name": "string"
}, - "mdExtensions": [
- "string"
], - "name": "string",
- "nameExpression": {
- "id": "string",
- "name": "string"
}, - "namespace": {
- "id": "string",
- "name": "string"
}, - "ownedComment": [
- {
- "id": "string",
- "name": "string"
}
], - "ownedElement": [
- {
- "id": "string",
- "name": "string"
}
], - "owner": {
- "id": "string",
- "name": "string"
}, - "owningPackage": {
- "id": "string",
- "name": "string"
}, - "owningTemplateParameter": {
- "id": "string",
- "name": "string"
}, - "qualifiedName": "string",
- "relatedElement": [
- {
- "id": "string",
- "name": "string"
}
], - "source": [
- {
- "id": "string",
- "name": "string"
}
], - "supplier": [
- {
- "id": "string",
- "name": "string"
}
], - "supplierDependency": [
- {
- "id": "string",
- "name": "string"
}
], - "syncElement": {
- "id": "string",
- "name": "string"
}, - "taggedValue": [
- {
- "id": "string",
- "name": "string"
}
], - "target": [
- {
- "id": "string",
- "name": "string"
}
], - "templateParameter": {
- "id": "string",
- "name": "string"
}, - "visibility": {
- "literal": "string",
- "name": "string"
}
}
]Retrieve a specific model element by its unique identifier
| id required | string Example: _1234x_1_1234567_1234567891234_123456_12345 Unique identifier of the element |
| select | string Default: null Example: select=name, id, value Select specific properties to return |
| expand | string Default: null Example: expand=ownedElement($select=name,ID;$filter=class eq 'Property') expand related entities. supports nested $select, $filter and $expand |
{- "appliedStereotype": [
- {
- "id": "string",
- "name": "string"
}
], - "class": "Abstraction",
- "client": [
- {
- "id": "string",
- "name": "string"
}
], - "clientDependency": [
- {
- "id": "string",
- "name": "string"
}
], - "ID": "string",
- "mapping": {
- "id": "string",
- "name": "string"
}, - "mdExtensions": [
- "string"
], - "name": "string",
- "nameExpression": {
- "id": "string",
- "name": "string"
}, - "namespace": {
- "id": "string",
- "name": "string"
}, - "ownedComment": [
- {
- "id": "string",
- "name": "string"
}
], - "ownedElement": [
- {
- "id": "string",
- "name": "string"
}
], - "owner": {
- "id": "string",
- "name": "string"
}, - "owningPackage": {
- "id": "string",
- "name": "string"
}, - "owningTemplateParameter": {
- "id": "string",
- "name": "string"
}, - "qualifiedName": "string",
- "relatedElement": [
- {
- "id": "string",
- "name": "string"
}
], - "source": [
- {
- "id": "string",
- "name": "string"
}
], - "supplier": [
- {
- "id": "string",
- "name": "string"
}
], - "supplierDependency": [
- {
- "id": "string",
- "name": "string"
}
], - "syncElement": {
- "id": "string",
- "name": "string"
}, - "taggedValue": [
- {
- "id": "string",
- "name": "string"
}
], - "target": [
- {
- "id": "string",
- "name": "string"
}
], - "templateParameter": {
- "id": "string",
- "name": "string"
}, - "visibility": {
- "literal": "string",
- "name": "string"
}
}Retrieve a diagram image as a base64 encoded string by its element ID. Supports multiple image return types.
| id required | string Example: _1234x_1_1234567_1234567891234_123456_12345 Unique identifier of the diagram element |
| format | string Default: "png" Example: format=jpeg Specify the image format to be returned: tiff, gif, png, jpeg, bmp. |
iVBORw0KGgoAAAANSUhEUgAA...
Returns a list containing the names and IDs of all currently loaded projects.
[- {
- "id": "_2024x_2_62b0208_1768963879243_673818_4946",
- "name": "example_project_one"
}, - {
- "id": "_2024x_2_62b0208_1768963887375_811485_2845",
- "name": "example_project_two"
}
]Sets the active project to the specified project ID. Project must be loaded. Project IDs are dynamic and can change on project re-load or restart of MSOSA. See currently loaded project IDs via /projects.
| id required | string ID of the loaded project to be set as the active project. |
{- "id": "_2024x_2_62b0208_1768870314838_439651_4946"
}{- "details": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "message": "string"
}