GET group/…/tests

Returns the list of tests in the group.

Resource URL

https://www.drillster.com/api/2.1.1/group/{group_id}/tests

Parameters

Field Type Description
group_id
required
String The ID of the group to be retrieved.

Example value: Ak_X20ACmESsTY72HU5IbU37I50Y9UO5_enbyfJYowc
query
optional
String The text to search for in the test names and descriptions. The search is case-insensitive.

If a query is present, the list of test records in the response is not sorted by relevance.

Example values: Geography
resultStart
optional
Integer The index number (zero-based) of the first test to include in the result. Use this parameter, in combination with resultSize, to apply pagination of the result; it will limit the number of test included in the result. Defaults to 0.
resultSize
optional
Integer The maximum number of tests to include in the result. If not specified, the results for all (remaining) tests are returned.

Response

A 2.1.1 Group object containing the group details and a list of tests.

Example request

GET https://www.drillster.com/api/2.1.1/group/Ak_X20ACmESsTY72HU5IbU37I50Y9UO5_enbyfJYowc/tests

Response

{
  "id": "Ak_X20ACmESsTY72HU5IbU37I50Y9UO5_enbyfJYowc",
  "name": "Acme Corp managers",
  "description": "The managers in Acme Corp.",
  "tests": [ {
    "id": "u0-YCnpVR3WpfvCj79Q26A",
    "type": "TEST",
    "name": "Safety Test #1",
    "icon": {
      "type": "image/png",
      "url": "https://www.drillster.com/bin/feature/a17ab8d1cb2bd2fee8c66037995a30b42d837553"
    },
    "created": "2014-03-04T13:12:19Z",
    "drills": [ {
      "id": "b5876Pc3HJioyhkjefvXa7g",
      "type": "DRILL",
      "name": "Safety topic 1",
      "icon": {
        "type": "image/png",
        "url": "https://www.drillster.com/bin/feature/a17ab6d1cb2bd2fee8c60037995a30b42d837553"
      }
    }, {
      "id": "b5xWr876Sp2PTrIPc3Xa7g",
      "type": "DRILL",
      "name": "Safety topic 2",
      "icon": {
        "type": "image/png",
        "url": "https://www.drillster.com/bin/feature/a17ab8d1cb2bd2fee8c60067995a30b42d837553"
      }
    } ],
    "direction": "BIDIRECTIONAL",
    "style": "MULTIPLE_CHOICE",
    "instructions": {
      "text": "Get ready! You are about to start with the test. This test contains 6 questions.",
      "markup": [ {
        "type": "bold",
        "offset": 0,
        "length": 10
      } ]
    },
    "disclosure": [ "METADATA", "CORRECTIONS", "COMPONENT_SCORES", "OVERALL_SCORE" ],
    "columns": [ "Question", "Answer" ],
    "questions": [ 4, 2 ],
    "weights": [ 100, 100 ]
  }, {
    "id": "hTlCBZWIQ62EQ6MZWGOGcg",
    "type": "TEST",
    "name": "Safety Test #2",
    "icon": {
      "type": "image/png",
      "url": "https://www.drillster.com/bin/feature/a17ab8d1ce2bd2fee8c60037995a30b42d837553"
    },
    "created": "2014-03-04T14:08:55Z",
    "drills": [ {
      "id": "KJHv98hefhvkj_eouhkjh8y",
      "type": "DRILL",
      "name": "Safety topic #10",
      "icon": {
        "type": "image/png",
        "url": "https://www.drillster.com/bin/feature/a17ab8d1cb2bd2fee8c60037995a30b42d834553"
      }
    }, {
      "id": "b5xWr876Sp2PTrIPc3Xa7g",
      "type": "DRILL",
      "name": "Safety topic #11",
      "icon": {
        "type": "image/png",
        "url": "https://www.drillster.com/bin/feature/a17ab8d1cb2bd2fee8c60037995a30b42d23553"
      }
    } ],
    "direction": "BIDIRECTIONAL",
    "style": "MULTIPLE_CHOICE",
    "instructions": {
      "text": "Get ready! You are about to start with the test. This test contains 14 questions.",
      "markup": [ {
        "type": "bold",
        "offset": 0,
        "length": 10
      } ]
    },
    "disclosure": [ "METADATA", "CORRECTIONS", "COMPONENT_SCORES", "OVERALL_SCORE" ],
    "columns": [ "Question", "Answer" ],
    "questions": [ 10, 4 ],
    "weights": [ 100, 100 ]
  } ],
  "counts": {
    "tests": 2
  }
}