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
SearchPersonserver.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
GetPersonStatusserver.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
SetUnitStatusserver.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
AcknowledgeCallserver.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
SearchVehicleserver.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
SearchFirearmserver.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
CreateFieldInterviewserver.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
Create311Callserver.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)