In another project create a file called webapp.py in which we’ll export Flask to create an instance of it. Then import the requests library in order to consume the API . In Flask the routes are generally set with decorators, in which we will pass the REST methods as parameters (GET, POST, PUT, DELETE).
Read moreWhat are API in Python?
API is a shortcut for “Application Programming Interface “. Loosely defined, API describes everything an application programmer needs to know about piece of code to know how to use it.
Read moreIs Flask good for API?
Flask is ideal for machine learning engineers or developers who want to quickly prototype a web application and build APIs easily and quickly .
Read moreWhat is Flask REST?
Flask-RESTful¶ Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs . It is a lightweight abstraction that works with your existing ORM/libraries. Flask-RESTful encourages best practices with minimal setup.
Read more