Documentation Index

Fetch the complete documentation index at: https://docs.safetypooldb.ai/llms.txt

Use this file to discover all available pages before exploring further.

API JSON Schema

Prev Next

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"
    }
}