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

Open canvas app with Customize the command bar using command designer

How to implement approval in Teams using Adaptive Cards

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

Create Data Package file to Import Or Export CRM records.