Building an API app using Python Flask micro-web framework

@kondlawork
1 min readAug 10, 2020

Programming tools and libraries used in this example

Python, Flask* libraries, HTML, YAML, SSL certificates

Flask is a micro web framework written in Python. It is classified as a micro-framework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions.

Flask aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those decisions that it does make, such as what templating engine to use, are easy to change.

As your codebase grows, you are free to make the design decisions appropriate for your project. Flask will continue to provide a very simple glue layer to the best that Python has to offer. You can implement advanced patterns in SQLAlchemy or another database tool, introduce non-relational data persistence as appropriate, and take advantage of framework-agnostic tools built for WSGI, the Python web interface.

Create HTML template to be used for flask RESTful APIs called routes

Python libs for webApp

Declare Flask webApp routes and methods

run flask app conext

Test API endpoint

Call WebApp API to take a snapshot.

--

--

@kondlawork

I am a software engineering manager, and cloud architect who design, build, deploy, scale ,simplify and cost optimize platform architecture.