version Endpoint

The version endpoint shows version information for various software components, including BrainStem version, BrainD version, and build information.

There are no input parameters to this endpoint. It will return a JSON object as described below. This endpoint does not use a transaction envelope. Contents are returned exactly as described in the schema below.

JSON Schema for Response Object

The following table lists a JSON Schema for the response object.

Download the raw JSON Schema file for this response: get_version_response.json

Object Fields of Get Version Response

Name

Type

Mandatory

Description

braind

v1-buildInfo

Yes

Version and Build Information for the braind daemon.

brainstem

v1-buildInfo

Yes

Version and Build Information for the BrainStem library.

controlRoom

v1-buildInfo

No

Version and Build Information for the Control Room application.

v1-version

Name

Value

Type

Object

description

Object representing a <major>.<minor>.<patch> semantic version.

Name

Type

Mandatory

Description

major

v1-uint8

Yes

minor

v1-uint8

Yes

patch

v1-uint8

Yes

v1-buildInfo

Name

Value

Type

Object

description

Version and Build Information for an arbitrary software component.

Name

Type

Mandatory

Description

version

v1-version

Yes

buildDate

string

No

Date and Time that this software component was built.

buildHash

string

No

Hexadecimal Git commit ID that was used for this build.

v1-uint8

Name

Value

Type

integer

description

Unsigned 8-bit integer

minimum

0

maximum

255

Examples

curl http://127.0.0.1:9005/api/v1/version

The output will be similar to the following:

 1{
 2    "braind": {
 3        "version": {
 4            "major": 1,
 5            "minor": 0,
 6            "patch": 1
 7        },
 8        "buildDate": "Wed Aug 23 13:35:12 2023",
 9        "buildHash": "b1ba5c6153b7fbbb65c868b65c8ac70bb3d7b7dd"
10    },
11    "brainstem": {
12        "version": {
13            "major": 2,
14            "minor": 10,
15            "patch": 0
16        },
17        "buildDate": "2023-09-11T17:14:25Z",
18        "buildHash": "7af9c07e44601d6987fe3dab0ea201a13609683e"
19    }
20}