Summary
In this chapter, we discussed how to use Python and web frameworks such as Flask for developing web applications and a REST API. We started the chapter by analyzing the requirements for web development, which include a web framework, a UI framework, a web server, a database system, API support, security, and documentation. Later, we introduced how to use the Flask framework for building web applications with several code examples. We discussed different request types with different HTTP methods and how to parse the request data with relevant code examples. We also learned about the use of Flask to interact with a database system using an ORM library such as SQLAlchemey. In the latter part of the chapter, we introduced the role of a web API for web applications, mobile applications, and business-to-business applications. We investigated a Flask extension to develop a REST API with a detailed analysis by using a sample API application. In the last section, we discussed a case...