1.

What is the difference between flask and flask RESTful? How do we create a REST API using a flask?

Answer»

Flask is a Flask ADDON that allows US to easily create APIs with a clean interface structure. It's an agile, quick, and lightweight ABSTRACTION that works with EXISTING ORMs and frameworks.

If we understand the basics of Flask, we should find Flask-RESTful to be a simple IDEA to grasp. To create a REST API, we have to do the following steps:

  • Import the modules and start up the program
  • Creating the REST API endpoints
  • Write methods to read and write data in the CSV file
  • Test the endpoints using Postman


Discussion

No Comment Found