Skip to content

v1.0.0

Compare
Choose a tag to compare
@TaeyoonKwon TaeyoonKwon released this 16 Feb 16:04
· 26 commits to main since this release

🚀 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 and CustomerInput for post requests.

Request Guard

  • ApiKey request guard for commonly used x-api-key pattern

API

  • (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