mechanics-rs
HTTP server wrapper around mechanics-core.
Endpoint
POST /api/v1/mechanicsContent-Type: application/jsonAuthorization: Bearer <token>
The server validates Bearer tokens configured through MECHANICS_ALLOWED_TOKENS
(comma-separated). If no tokens are configured, the server intentionally runs in
deny-all mode and returns 401 Unauthorized for every request until tokens are
added.
Quick start
LISTEN_ADDR=127.0.0.1:3001 \
MECHANICS_ALLOWED_TOKENS=token-a,token-b \
Example request