- Rust
- axum
- tokio
- Docker
- Domain Driven Design
You need to run the devcontainer first.
Then you can run the following command to start the server.
cargo run
or you can run the following command to start the server with watch mode.
./watch.sh
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"circle_name": "music club",
"capacity": 10,
"owner_name": "John Lennon",
"owner_age": 21,
"owner_grade": 3,
"owner_major": "Music"
}' \
http://127.0.0.1:3000/circle
curl -X GET http://127.0.0.1:3000/circle/{circle_id}
curl -X PUT \
-H "Content-Type: application/json" \
-d '{
"circle_name": "football club",
"capacity": 15
}' \
http://127.0.0.1:3000/circle/{circle_id}