HTTP Request Methods

 

1. 饾棜饾棙饾棫: GET Method is used to request information from a website, Server or from API.

Example: GET/api/employee/{employee-id}

 

2. 饾棧饾棦饾棪饾棫: POST Method is used to create a new resource in server. We can send data to the server in the request body.

Example: POST/api/employee/department

 

3. 饾棧饾棬饾棫: PUT Method is used to update an existing record by sending the updated data as the content to request body to the server.

Example: POST/api/employee/55445

 

4. 饾棗饾棙饾棢饾棙饾棫饾棙: DELETE Method is used to remove resources from the server.

Example: DELETE/api/employee/55445

 

5. 饾棧饾棓饾棫饾棖饾棝: PATCH and PUT are similar use to updates a resource, but it will update data partially but not fully.

Example: PATCH/api/employee/55445{"Name: Employee Name"}

 

6. 饾棝饾棙饾棓饾棗: HEAD Method is like the GET but it doesn't have any response body.

Example: HEAD/api/employee

 

7. 饾棦饾棧饾棫饾棞饾棦饾棥饾棪: OPTIONS Method is used to get the information about the possible communication options from the given URL.

Example: OPTIONS/api/main.html/"Text"

8. 饾棫饾棩饾棓饾棖饾棙: This Method creates a loop back test with the same request body that the client send to the server before, and the successful response code is 200.

Example: TRACE/api/main.html

 

9. 饾棖饾棦饾棥饾棥饾棙饾棖饾棫: This Method is used for making end to end connections between a client and server.

Example: CONNECT www.testwebsite.com:445 HTTP/1.1




Comments

Popular posts from this blog

Create email templates in dynamic 365 and send email using Power Automate

Open canvas app with Customize the command bar using command designer

Azure Function to Read Incoming Message in Twilio

Receive Incoming Message in Twilio using Power Automate

Create Data Package file to Import Or Export CRM records.