6 releases (stable)
Uses new Rust 2024
| new 1.1.1 | Jan 28, 2026 |
|---|---|
| 1.1.0 | Jan 20, 2026 |
| 1.0.0 | Dec 31, 2025 |
| 0.8.0 | Jun 5, 2025 |
| 0.1.0 | Jun 5, 2025 |
#1106 in HTTP server
480KB
15K
SLoC
avina-api
API server application for the Openstack-based LRZ Compute Cloud, https://cc.lrz.de, first and foremost the budgeting system.
Development
Requirements
To work with the API locally you need Docker as well as the MariaDB client.
The init.sh script is then used to setup and migrate a database for you.
scripts/init.sh
This is required prior to both cargo test and running the API locally.
Running the API server locally
source admin-openrc.sh
source scripts/config_env.sh
# optional: insert database dump
scripts/enter_db.sh
source lrz_budgeting.sql
quit
scripts/run_api.sh
Calling the local API server
source admin-openrc.sh
cargo run --bin avina -- -u http://localhost:8000/api -r http://localhost:8000/api user me
Dependencies
~58–80MB
~1.5M SLoC