# Build
docker-compose build
# Start
docker-compose run --rm --service-ports api bash
# Run server 8000
cargo watch -x run
docker-compose up -d api
# Execute code style
cargo +nightly fmt
# Execute check code style
cargo +nightly fmt --all -- --check
# Execute test
cargo test
curl -i -X GET "http://127.0.0.1:8000/health/"
{"health":"Ok","agent":"[agent]","created_at":"[time]","version":"0.0.1"}
curl -i -X GET "http://127.0.0.1:8000/api/v1/generate/?message=hello+wold"
{"url":"/static/[token].png","message":""}