Building REST APIs with Flask

Create Python Web Services with MySQL

  • Kunal┬áRelan

Table of contents

  1. Front Matter
    Pages i-xv
  2. Kunal Relan
    Pages 1-26
  3. Kunal Relan
    Pages 27-58
  4. Kunal Relan
    Pages 59-96
  5. Kunal Relan
    Pages 97-134
  6. Kunal Relan
    Pages 135-157
  7. Kunal Relan
    Pages 159-182
  8. Kunal Relan
    Pages 183-194
  9. Back Matter
    Pages 195-199

About this book


Develop RESTful web services using the Flask micro-framework and integrate them using MySQL. Use Flask to develop, deploy, and manage REST APIs with easy-to-read and understand Python code. Solve your problem from a choice of libraries. Learn to use MySQL as the web services database for your Flask API using SQLAlchemy ORM.

Building REST APIs with Flask provides a primer on Flask, RESTful services, and working with pip to set up your virtual environment. The key differences between NoSQL and SQL are covered, and you are taught how to connect MySQL and Flask using SQLAlchemy. Author Kunal Relan presents best practices for creating REST APIs and guides you in structuring your app and testing REST endpoints. He teaches you how to set up authentication and render HTML using views. You learn how to write unit tests for your REST APIs, and understand mocks, assertions, and integration testing. You will know how to document your REST APIs, deploy your Flask application on all of the major cloud platforms, and debug and monitor your Flask application.

What You'll Learn:
  • Use MySQL to create Flask REST APIs 
  • Test REST endpoints
  • Create CRUD endpoints with Flask and MySQL
  • Deploy Flask on all of the major cloud platforms
  • Monitor your Flask application


flask python rest api testing integration crud mysql sqlalchemy orm

Authors and affiliations

  • Kunal┬áRelan
    • 1
  1. 1.New DelhiIndia

Bibliographic information

Industry Sectors
Chemical Manufacturing
Finance, Business & Banking
IT & Software
Oil, Gas & Geosciences