https://github.com/brews/afasttoywebapi
afasttoywebapi is a simple toy RESTful web API server written in Rust with axum and diesel.
https://github.com/brews/afasttoywebapi
application axum container diesel example restful-api rust toy webapi
Last synced: 3 months ago
JSON representation
afasttoywebapi is a simple toy RESTful web API server written in Rust with axum and diesel.
- Host: GitHub
- URL: https://github.com/brews/afasttoywebapi
- Owner: brews
- License: apache-2.0
- Created: 2025-01-09T02:21:32.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T00:07:15.000Z (8 months ago)
- Last Synced: 2025-07-05T02:57:10.745Z (3 months ago)
- Topics: application, axum, container, diesel, example, restful-api, rust, toy, webapi
- Language: Rust
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# afasttoywebapi
## Some manual server tests
Run from a terminal shell:```shell
SERVER_URL="http://localhost:8080"# Post a facility
curl -i --location --request POST "${SERVER_URL}/facilities" \
--header 'Content-Type: application/json' \
--data-raw '{
"uid": "M.B.6K_TN.0",
"segment": "Manufacturing",
"company": "6K Energy",
"technology": "Batteries",
"subcategory": "EAM",
"investment_status": "U",
"latitude": 35.606,
"longitude": -88.83,
"estimated_investment": 200438887,
"announcement_date": "2023-04-18"
}'
```