REST API

This is the manual for older MicroStream versions (Version < 5.0).

The new documentation (Version >= 5.0) is located at:

https://docs.microstream.one/

Root

GET [instance-name]/root

Returns the name and object id of the current storage root element.

{
    name: "ROOT",
    objectId: "1000000000000000028"
}

Object

GET [instance-name]/object/:objectid

Returns description and values of a distinct object.

Path Parameters

Query Parameters

{
    "objectId": "1000000000000000028",
    "typeId": "110",
    "length": "0",
    "variableLength": [
    "3"
    ],
    "simplified": false,
    "data": [
        [
            "1000000000000000029",
            "1000000000000000030",
            "1000000000000000031"
        ]
    ],
    "references": null
}

Type Dictionary

GET [instance-name]/dictionary

The type dictionary as plain text.

[Type dictionary contents]

Statistics

GET [instance-name]/maintenance/filesStatistics

Statistics of the used storage files and channels.

{
    "creationTime": "2020-04-15T13:32:26.003Z",
    "channelStatistics": {
        "0": {
            "channelIndex": 0,
            "files": [
                {
                    "fileNumber": "1",
                    "file": "storage\\channel_0\\channel_0_1.dat",
                    "fileCount": "1",
                    "liveDataLength": "2898",
                    "totalDataLength": "2930"
                }
            ],
            "fileCount": "1",
            "liveDataLength": "2898",
            "totalDataLength": "2930"
        }
    },
    "fileCount": "1",
    "liveDataLength": "2898",
    "totalDataLength": "2930"
}

Last updated