HTTP endpoint
Minimal configuration
communication:
- http_endpoint:
host: 0.0.0.0
port: 8092
response_delay: 0.0
response_jitter: 0.0
endpoints:
"/v1/air-quality/{profile}":
method: GET
alias:
- "#attr(active_profile) = #param(profile)"
response:
profile: "#attr(active_profile)"
current:
timestamp: "#attr(current_timestamp)"
pm2_5: "#attr(current_pm2_5)"
"/simulator/profile":
method: POST
alias:
- "#attr(active_profile) = #param(__body__.profile)"
response:
status: "ok"
active_profile: "#attr(active_profile)"Schema (what SPX Server actually supports)
Path params and request body
Last updated

