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
MyErrorfor handling errors in api responses.
Fairing
- simple fairing
Counterto demonstrate how fairing works.
Model
- Customer model including
CustomerDocumentfor MongoDB Document andCustomerInputfor post requests.
Request Guard
ApiKeyrequest guard for commonly used x-api-key pattern
API
(GET)/customerto get a list ofCustomerDocument(GET)/customer/{_id}to get a singleCustomerDocumentby ObjectId(POST)/customer/to create aCustomerDocument(PATCH)/customer/{_id}to update a singleCustomerDocumentby ObjectId(DELETE)/customer/{_id}to delete a singleCustomerDocumentby ObjectId