Method returns tests list from StartExam using specified filters.
GET https://api.startexam.com/v1/tests?projectId={projectId}&type={type}&status={status}
projectId
- optional filter by project identifier, guid from StartExam.
type
- optional filter by type. Supported values: test
, survey
.
status
- optional filter by status. Supported values: active
, archive
, deleted
.
None.
GET https://api.startexam.com/v1/tests?projectId=9db9f732-bc09-46a9-a30f-c55a20dda852 HTTP/1.1
Host: api.startexam.com
Accept: application/json; charset=utf-8
Authorization: SharedKey 99:f52JP7GQd0xqrBzMO1NWTNVGzLENymgdUXu/Ie++NX4=
Content-Type: application/json; charset=utf-8
Date: Fri, 03 May 2024 02:46:29 GMT
Date and Authorization headers are constructed in the standard way.
200 OK, 400 Bad Request, etc. according the response processing guide.
Json.
testId
- test id, guid.
projectId
- project id, guid.
type
- test type, test/survey.
status
- test status, active/archive/deleted.
title
- test name, string.
description
- test description, string, nullable.
time
- test time limit, HH:MM:SS, nullable.
modified
- test last modified in UTC, ISO 8601.
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 657
{
"tests": [
{
"testId": "7b5f3a6e-2184-4064-862e-3df13f308d39",
"projectId": "9db9f732-bc09-46a9-a30f-c55a20dda852",
"type": "test",
"status": "active",
"title": "IQ Test",
"description": "Standard intelligence quotient assessment",
"time": "02:00:00",
"modified": "2023-07-03T02:46:29Z"
},
{
"testId": "56900112-70c9-4324-87b2-5bdd77d94d6a",
"projectId": "9db9f732-bc09-46a9-a30f-c55a20dda852",
"type": "survey",
"status": "deleted",
"title": "Motivation Survey",
"description": null,
"time": null,
"modified": "1994-05-03T02:46:29Z"
}
]
}