avina-api 1.1.1

Rust API server for the LRZ-specific features of the Openstack-based LRZ Compute Cloud.
docs.rs failed to build avina-api-1.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: avina-api-0.1.0

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