AXIOS v1.7.0Developer documentation · source-generated catalog
Integration Recipes

Common AXIOS patterns you can adapt safely.

These examples use named server exports so your resource stays inside the supported bridge contract.

Available in this build

Person lookup

SearchPerson
server.lua
exports['axios-cad-bridge']:SearchPerson('Jane Doe', function(ok, rows, statusCode)
    if not ok then return end
    for _, person in ipairs(rows or {}) do
        print(json.encode(person))
    end
end)
Available in this build

Person status

GetPersonStatus
server.lua
exports['axios-cad-bridge']:GetPersonStatus(personId, function(ok, status)
    if not ok then return end
    print(json.encode(status))
end)
Available in this build

Set unit status

SetUnitStatus
server.lua
exports['axios-cad-bridge']:SetUnitStatus(source, 'en_route', callId, function(ok, unit)
    if not ok then return end
    print('AXIOS unit status updated')
end)
Available in this build

Acknowledge a call

AcknowledgeCall
server.lua
exports['axios-cad-bridge']:AcknowledgeCall(source, callId, function(ok, result)
    if not ok then return end
    print('AXIOS call acknowledged')
end)
Available in this build

Vehicle lookup

SearchVehicle
server.lua
exports['axios-cad-bridge']:SearchVehicle(plate, function(ok, vehicle)
    if not ok then return end
    print(json.encode(vehicle))
end)
Available in this build

Firearm lookup

SearchFirearm
server.lua
exports['axios-cad-bridge']:SearchFirearm(serial, function(ok, firearm)
    if not ok then return end
    print(json.encode(firearm))
end)
Available in this build

Field interview

CreateFieldInterview
server.lua
exports['axios-cad-bridge']:CreateFieldInterview({
    contactType = 'consensual',
    narrative = 'Documented from custom resource',
    people = { { personId = personId, role = 'contact' } }
}, function(ok, record, statusCode)
    if not ok then return end
    print(json.encode(record))
end)
Available in this build

Public 311 intake

Create311Call
server.lua
exports['axios-cad-bridge']:Create311Call({
    location = 'Mission Row',
    narrative = 'Non-emergency service request'
}, function(ok, call)
    if not ok then return end
    print(json.encode(call))
end)