Building REST APIs with Flask: Create Python Web Services with MySQL
Authors: Kunal Relan
ISBN-10: 1484250214
ISBN-13: 9781484250211
Edition 版次: 1st ed.
Publication Date 出版日期: 2019-09-13
Print Length 页数: 199 pages
Book Description
By finelybook
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
1. Beginning with Flask
2. Database Modeling in Flask
3. CRUD Application with Flask(Part 1)
4. CRUD Application with Flask(Part 2)
5. Testing in Flask
6. Deploying Flask Applications
7. Monitoring Flask Applications