0fccc63dd5c85aac9b17dd447b4976033102d749
Pager Middleware
API zwischen mehreren Pager Remote Systemen und der Mgmt Software
Howto:
git clone https://git.tservic.es/rg/pager-middlewarecd pager-middlewarepython3 -m venv .venvsource .venv/bin/activatepip3 install -r requirements.txtcp config.example.yaml config.yamlvim config.yamlpython3 app.py...- PROFIT
API Endpoints:
/api/page
Type: POST
Authentication: Bearer Token
Content: Pager ID / ALL
Response:
PAGERNOTIFIED- success
PAGERNOTFOUND- failure (pager not found)
ERROR- failure (diverse)
/api/shutdown
Type: POST
Authentication Bearer Token
Content ``
Response:
PAGERNOTIFIED- shutdown signal send
ERROR- failure (diverse)
Example Call
curl -s -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" http://127.0.0.1:5500/api/page -H "Authorization: Bearer SUPERSECRET" -d "ALL"
Description
Languages
Python
100%