| Crates.io | unitx-api |
| lib.rs | unitx-api |
| version | 0.1.0 |
| created_at | 2025-10-27 09:03:20.613215+00 |
| updated_at | 2025-10-27 09:03:20.613215+00 |
| description | Axum HTTP API for the unitx conversion engine. |
| homepage | https://github.com/mrteesoft/unitx |
| repository | https://github.com/mrteesoft/unitx |
| max_upload_size | |
| id | 1902488 |
| size | 77,436 |
Axum-based HTTP service that exposes the unitx conversion engine. Ships temperature, distance, and live currency endpoints with validation and structured errors.
cargo run -p unitx-api
Optional environment variables:
RUST_LOG=unitx_api=debug for verbose logging.curl -X POST http://localhost:8080/convert/currency \
-H "Content-Type: application/json" \
-d '{"value":"100.00","from":"USD","to":"EUR"}'
Response:
{
"category": "currency",
"from": "USD",
"to": "EUR",
"input": "100.00",
"output": "92.00"
}
Actual output depends on the live rate returned by the upstream provider.