Example JSON Request & Response - SurpassLocal GET TestSession

https://...surpass.com/api/v1/TestSession/

{

  "count": 2,

  "top": 10,

  "skip": 0,

  "pageCount": 1,

  "nextPageLink": null,

  "prevPageLink": null,

  "response": [

    {

      "id": 2,

      "reference": "HTKYMR4S",

      "href": "http://172.16.3.96:82/api/v1/TestSession/2"

    },

    {

      "id": 3,

      "reference": "NM46F64S",

      "href": "http://172.16.3.96:82/api/v1/TestSession/3"

    }

  ],

  "errors": [],

  "serverTimeZone": "GMT Standard Time"

}

 

https://...surpass.com/api/v1/TestSession/3

{

  "response": [

    {

      "id": 3,

      "reference": "NM46F64S",

      "href": "http://172.16.3.96:82/api/v1/TestSession/3",

      "keycode": "NM46F64S",

      "pin": "8N8T7M",

      "startDate": "2015-12-22",

      "endDate": "2015-12-22",

      "startTime": "0000",

      "endTime": "2359",

      "testState": "Archived",

      "subject": {

        "id": 1,

        "reference": "BTLS0001",

        "href": null,

        "name": "BTL Subject"

      },

      "test": {

        "id": 1,

        "reference": "BTL Test",

        "href": null,

        "name": "BTL Test"

      },

      "testForm": {

        "id": 1,

        "reference": "BTL Test Form",

        "href": null,

        "name": "BTL Test Form"

      },

      "candidate": {

        "id": 18,

        "reference": "Candidate4",

        "href": null

      }

    }

  ],

  "errors": [],

  "serverTimeZone": "GMT Standard Time"

}

  

https://...surpass.com/api/v1/TestSession/NM46F64S

{

  "response": [

    {

      "id": 3,

      "reference": "NM46F64S",

      "href": "http://172.16.3.96:82/api/v1/TestSession/3",

      "keycode": "NM46F64S",

      "pin": "8N8T7M",

      "startDate": "2015-12-22",

      "endDate": "2015-12-22",

      "startTime": "0000",

      "endTime": "2359",

      "testState": "Archived",

      "subject": {

        "id": 1,

        "reference": "BTLS0001",

        "href": null,

        "name": "BTL Subject"

      },

      "test": {

        "id": 1,

        "reference": "BTL Test",

        "href": null,

        "name": "BTL Test"

      },

      "testForm": {

        "id": 1,

        "reference": "BTL Test Form",

        "href": null,

        "name": "BTL Test Form"

      },

      "candidate": {

        "id": 18,

        "reference": "Candidate4",

        "href": null

      }

    }

  ],

  "errors": [],

  "serverTimeZone": "GMT Standard Time"

}

Feedback and Knowledge Base