Performing CRUD Operations
Explore how to implement CRUD operations in Flutter by connecting your app to RESTful back-end services using the http package. Understand how to handle GET, POST, PATCH, and DELETE requests to manage dynamic data effectively within your application.
Introduction
In most cases, our application needs to be dynamic. A dynamic app has to communicate with some back-end service to get and fetch data.
In this lesson, we’ll use REST to communicate with back-end services over HTTP. The core abstraction of information in the REST architecture is a resource, which is any information that we can name.
Performing CRUD operations
The most common operations in REST are Create, Read, Update, and Delete operations—also known as CRUD operations.
These operations are performed on resources using REST resource methods, which consist of:
-
POST: Creates new resources
-
GET: Reads resources
-
PATCH: Updates resources
-
DELETE: Deletes resources
There are other REST methods, but these are the ...