/1/protocol - GET - Index
Overview
The /1/protocol endpoint returns the structure of the guide for the requested assessment. The protocol is divided as follows:
- An assessment is broken down into areas: milestones, barriers, transitions, eesa.
- Each area has groups: Mand, tact, group1, etc.
- Each group has questions
Please note that the results of this API call are not localized and thus can be used regardless of the locale required. Only the results of /1/protocol - GET - Query are localized.
Required Headers
Key | Value | Example |
---|---|---|
User-Agent | <company identifier> | The exact value here is not important, but it should include something to identify your company |
Accept | application/json | |
Authorization | Bearer <your token> | Bearer wV1MLk5+sFzioJw/3M5r9A== |
X-SystemDomain | <the system domain> | vbmapp |
The Response
Area Fields
Field | Type | Optional | Description |
---|---|---|---|
area | String | Required | A unique identifier for the area ('milestones', 'barriers', 'transitions', 'eesa') |
groups | Array | Required | An array of Group objects |
Group Fields
Field | Type | Optional | Description |
---|---|---|---|
group | String | Required | An identifier for the group |
questions | Array | Required | An array of Question objects |
levels | Array | Optional | An array of String objects (milestones only) defining the levels for the group ('level1', 'level2') |
Question Fields
Field | Type | Optional | Description |
---|---|---|---|
questionNum | Int | Required | The number (identifier) of this question (range 1...n) |
skillCount | Int | Required | The number of skills related to the question (only interesting for milestones) |
level | String | Optional | A string defining the level of the question (milestones only) |
Examples
Example
curl -X GET \
-H 'User-Agent: dmtd-rest-api' \
-H 'Authorization: Bearer wV1MLk5+sFzioJw/3M5r9A==' \
-H "Accept: application/json" \
-H "X-SystemDomain: vbmapp" \
https://api-sandbox.datamtd.com/1/protocol
Response
{ "areas": [ {
"area": "milestones", "groups": [ { "group": "mand", "levels": [ "level1", "level2", "level3" ], "questions": [ {
"questionNum": 1, "skillCount": 4,
"level": "level1" }, { "questionNum": 2,
"skillCount": 5,
"level": "level1" },
...
]
}