This rust web-app is intended...
- to continue my exploration of rust
- to explore the Rocket web-framework
- to explore coding async-first
- to explore rust/async testing
- parses the bib out of the incoming url
- validates the bib
- runs an alma-api lookup to get the alma mms_id
- builds a primo redirect url
- redirects the user to that url
This all works now. (yay!)
- Our actual implementation-solution will likely be in php or python.
-
โ see if there's an easy way to implement a route with the same pattern, but bib_tester/info -- that'd get picked up before the bib-num pattern. A lightweight endpoint like this would allow experimenting with ab load-testing.
-
convert print-statements to logging.
-
look into returning a templated response.
-
switch any simple unwrap() calls to unwrap_or_else() for my own edification -- to better understand the kinds of error-conditions that can exist.
-
explore caching.
-
explore saving api lookups into an sqlite db.
-
look into how I might embed the curret git-commit-version into the compilation process, for my usual webapp version url-response.