/1/guide - GET

Overview

The /1/guide endpoint returns the structure of the guide for the requested assessment.  The guide is divided as follows:

  • Chapters
  • Each chapter has sections
  • Each section can have sub sections

The response to this endpoint contains an array of chapters, each of which, in-turn, contain the sections.

The resulting information is used in the remaining /1/guide and /1/protocol APIs.

Required Headers

KeyValueExample
User-Agent<company identifier>The exact value here is not important, but it should include something to identify your company
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLk5+sFzioJw/3M5r9A==
X-SysemDomain<the system domain>vbmapp

Optional Headers

KeyValueDefault
Accept-Language<language locale> en

The Response


Chapter Fields

FieldTypeOptionalDescription
titleStringRequiredThe title of the chapter
contentStringRequiredThe HTML content of the chapter
sectionsArray<Section>RequiredAn array of sections in the chapter

Section Fields

FieldTypeOptionalDescription
titleStringRequiredThe title of the section
contentStringRequiredThe HTML content of the section

Examples

Example

curl -X GET \
  -H 'User-Agent: dmid-rest-api' \
-H 'Authorization: Bearer wV1MLk5+sFzioJw/3M5r9A==' \
-H "Accept: application/json" \
-H "Accept-Language: es" \
-H "X-SystemDomain: vbmapp" \
https://api-sandbox.datamtd.com/1/guide

Response

{
    "chapters": [
        {
            "title": "VB- MAPP Español",
            "content": "<div class=\"title_page\">\n\n  <hr style=\"border-color: #923E59;\">\n\n  ... </div>",
            "sections": [
                {
                    "title": "RECONOCIMIENTOS",
                    "content": "<div class=\"acknowledgements\">\n\n    <h1 id=\"index_title\" class=\"page_banner\">RECONOCIMIENTOS</h1>\n\n    <p>\n        El análisis innovador análisis de B.F. Skinner sobre la conducta humana (1953) y el lenguaje (1957) ha resistido\n ...</div>\n"
                },
...
]