Simple example on how to build a Flask Api which would expose a get endpoint.
Features in this app includes basic error handler, after request function, exception handler and logging using rotating file handler (helpful in production environment). And, how to serve this app using waitress (supports both windows and linux) in production.
Logging and exception handling credits to @ivanleoncz in https://stackoverflow.com/questions/14037975/how-do-i-write-flasks-excellent-debug-log-message-to-a-file-in-production post.