0% found this document useful (0 votes)
7 views

Rest API Methods

The document describes HTTP request methods GET, POST, PUT, PATCH and DELETE. GET retrieves data from a server, POST sends data to a server, PUT updates existing data, PATCH partially updates data, and DELETE removes data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Rest API Methods

The document describes HTTP request methods GET, POST, PUT, PATCH and DELETE. GET retrieves data from a server, POST sends data to a server, PUT updates existing data, PATCH partially updates data, and DELETE removes data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

GET

The GET method is used


to retrieve data from a
server.

It is similar to viewing a
webpage in a browser.
POST

The POST method is used


to send data to a server
for processing.

It is like submitting a
form on a website.
PUT

The PUT method is used


to update existing data
on a server.

It is similar to editing a
document.
PATCH

The PATCH method is


used to partially update
data on a server.

It is like making small


changes to a document.
DELETE

The DELETE method is


used to remove data
from a server.

It is like deleting a file


from your computer.
To Summarize...
- GET: Retrieve data from a server (e.g.,
reading an article on a news website).

- POST: Send data to a server for processing


(e.g., submitting an online registration form).

- PUT: Update existing data on a server (e.g.,


modifying the content of a note in a note-
taking app).

- DELETE: Remove data from a server (e.g.,


deleting a photo from an image hosting
service).

- PATCH: Partially update data on a server


(e.g., modifying a user's profile information on
a social media platform).
Sarthak Chauhan

FOUND THESE HELPFUL?

Follow me for more such coding


related content.

You might also like