API JSON Schema
- 10 Nov 2021
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
API JSON Schema
- Updated on 10 Nov 2021
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The following are definitions of the data types returned from the API.
Session Token
The following is returned from createtoken.
{
"$id": "https://safetypooldb.ai/sessiontoken.schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Session Token",
"type": "object",
"additionalProperties": false,
"properties": {
"token": {
"type": "string"
},
"expiry": {
"type": "string",
"format": "date-time"
}
},
"required": ["token","expiry"]
}
Scenario
Scenarios are returned using the ASAM OpenLABEL standard.
Scenario File List
{
"$id": "https://safetypooldb.ai/scenariofilelist.schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Scenario File List",
"$defs": {
"scenarioFile": {
"type": "object",
"additionalProperties": false,
"properties": {
"fileId": {
"type": "string",
"format": "uuid"
},
"fileName": {
"type": "string"
},
"fileSize": {
"type": "integer"
}
},
"required": [
"fileId",
"fileName",
"fileSize"
]}
},
"type": "array",
"items": {
"$ref": "#/$defs/scenarioFile"
}
}
Test Suite
{
"$id": "https://safetypooldb.ai/testsuite.schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Test Suite",
"type": "object",
"additionalProperties": false,
"properties": {
"testsuiteId": {
"type": "integer"
},
"name": {
"type": "string"
},
"description": {
"type": ["string", "null"]
},
"scenarios": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["testsuiteId","name"]
}
Test Suites
{
"$id": "https://safetypooldb.ai/testsuites.schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Test Suites",
"type": "array",
"items": {
"$ref": "https://safetypooldb.ai/testsuite.schema.json"
}
}
Was this article helpful?