Fully working CRUD REST API example using Rust and Rocket.rs
MIT License
Bot releases are hidden (Show)
github
folder into .dockerignore
rocket
from 0.5.0-rc.1
to 0.5.0-rc.2
rocket_okapi
from 0.8.0-rc.1
to 0.8.0-rc.2
Published by TaeyoonKwon over 2 years ago
[staging]
option at Rocket.toml is removed because it is deprecated in rocket 0.5.0Published by TaeyoonKwon over 2 years ago
Published by TaeyoonKwon over 2 years ago
MyError
for handling errors in api responses.Counter
to demonstrate how fairing works.CustomerDocument
for MongoDB Document and CustomerInput
for post requests.ApiKey
request guard for commonly used x-api-key pattern(GET)/customer
to get a list of CustomerDocument
(GET)/customer/{_id}
to get a single CustomerDocument
by ObjectId(POST)/customer/
to create a CustomerDocument
(PATCH)/customer/{_id}
to update a single CustomerDocument
by ObjectId(DELETE)/customer/{_id}
to delete a single CustomerDocument
by ObjectId