While I was doing a project I encountered this concept. CRUD methods are 4 basic functions used to manage data. These actions map directly to database commands and web protocols.
-
Create: Adds new data entries to a system. In SQL, this uses the
INSERTcommand, and in web APIs, it uses thePOSTmethod. -
Read: Fetches and views existing data without changing it. In SQL, this uses the
SELECTcommand, and in web APIs, it uses theGETmethod. -
Update: Edits or changes data that is already saved. In SQL, this uses the
UPDATEcommand, and in web APIs, it usesPUTorPATCH. -
Delete: Removes unwanted data from the system. In SQL, this uses the
DELETEcommand, and in web APIs, it uses theDELETEmetho