Releases: TaeyoonKwon/rust-rocket-sample
Releases · TaeyoonKwon/rust-rocket-sample
v1.3.0
v1.2.0
🔧 Technical Updates
[staging]
option at Rocket.toml is removed because it is deprecated in rocket 0.5.0- add proper env variables at ci.yaml to run tests with proper environment variables.
v1.1.0
🔧 Technical Updates
- Github Action's CI workdflow added.
v1.0.0
🚀 Features
Database
- Initialize MongoDB connection using Rocket's Adhoc fairing.
Error Handling
- custom struct
MyError
for handling errors in api responses.
Fairing
- simple fairing
Counter
to demonstrate how fairing works.
Model
- Customer model including
CustomerDocument
for MongoDB Document andCustomerInput
for post requests.
Request Guard
ApiKey
request guard for commonly used x-api-key pattern
API
(GET)/customer
to get a list ofCustomerDocument
(GET)/customer/{_id}
to get a singleCustomerDocument
by ObjectId(POST)/customer/
to create aCustomerDocument
(PATCH)/customer/{_id}
to update a singleCustomerDocument
by ObjectId(DELETE)/customer/{_id}
to delete a singleCustomerDocument
by ObjectId