Basic API to communicate with Unsplash for my personal website. Didn't want my website to directly communicate with Unsplash so created this API. Went with rust as an experiment and exploration of rust support, tooling and performance.
- Running:
cargo run
- Building:
cargo build
- Build for Release:
cargo build --release
EndPoint:
- Health Check: GET
<host>/
- Get Photos: GET
<host>/unsplash/get_photos
- URL Params:
- page_number: integer
- pre_page: integer
- URL Params:
Using cargo-llvm-cov for code coverage
rustup component add llvm-tools-preview --toolchain nightly
cargo install cargo-llvm-cov
- Prints Summary:
cargo llvm-cov
- Generates HTML:
cargo llvm-cov --html