In this video, we are going to cover how to implement the Delete CRUD operation using Flask and SQLAlchemy.
- [Narrator] Hi, and welcome to the second video…of the third section.…Implementing Delete.…In the previous video, we loaded the Update CRUD Operation.…In this, we go further and learn…how to implement the Delete Operation.…We are going to take a look at the…characteristics of the Delete Operation.…We will review the implementation of this operation.…And we will check how this is working in a demo.…The Delete operation in a RESTful API…should always be linked with a HTTP DELETE verb.…The Delete Operation is an unsafe operation,…since it removes the data from the Server,…and it changes the state of the application.…
The Delete Operation is noted important,…because we are deleting data.…As in case of all the previous CRUD Operations,…we should return meaningful HTTP response codes.…Like HTTP 404, in case the user wants to delete…an entity which was not found.…And HTTP 204, if the delete was successful.…There is another possibility:…we can return HTTP 200 for a successful delete.…But then we should return the deleted entity…
Regardless of platform, you will need to build APIs to serve data between different client applications and endpoints. Good APIs are a necessity for web and mobile projects, especially with the modern, mobile-first approach to development. This course delivers the fundamental knowledge required to enable highly connected interactions between applications via RESTful web APIs. Follow along with Gergo Bogdan and learn how to build up and structure an effective web API that can be used by any client application accessing it over HTTP, using Flask, the Python microframework.
Find out how to implement CRUD operations using SQLAlchemy and MySQL as the data store. Get an understanding of how REST works relative to APIs, and learn how to test APIs written in Python with the support of Flask. Explore token-based authentication and find out how to store passwords securely in your database. Along the way, Gergo introduces best practices and design guidelines when building large applications.
- Setting up Flask
- Using Flask templates and routing
- Implementing CRUD operations
- Implementing pagination
- Configuring RESTful authentication
- HTTP caching
- Securing web APIs
- Testing the application