API that provides your daily quotes, with a twist
Try it out the interactive documentation live at https://daily-quote-api.tuukka.net
This is the new Rust implementation. See the go-implementation branch for the original in Go, which was my first Go project, so it has quite a lot of my thoughts documented in the README.
- By default, the
/quoteendpoint returns the daily quote that refreshes every midnight (UTC) - In addition, the client can set the
of_-_thequery parameter, to request the quote of other time units- For example
/quote?of_the=week,/quote?of_the=fortnightor/quote?of_the=second
- For example
- See the OpenAPI documentation from the integrated Swagger UI tool at https://daily-quote-api.tuukka.net
- The API can be tested there with the list of all
of_theparameter options
- The API can be tested there with the list of all
- The API is written in Rust
- The quotes themselves are from this dataset: https://www.kaggle.com/datasets/abhishekvermasg1/goodreads-quotes
- I removed likes and tags manually as they aren't needed
- The quotes are stored in an SQLite database
- Swagger UI is built into to application for easy access
- All of this is built into a single Docker image with the size of only around ~22 MB (while the Go implementation in a scratch base image was around 30 MB)