From d4c8ab4d49caa7549ef0ce77c665e72bb768b94f Mon Sep 17 00:00:00 2001 From: Sujan Midatani Date: Sat, 11 May 2024 23:24:31 +0530 Subject: [PATCH] added additional API methods to the documentation --- contrib/api-development/api-methods.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/contrib/api-development/api-methods.md b/contrib/api-development/api-methods.md index 8c66919..61e10d7 100644 --- a/contrib/api-development/api-methods.md +++ b/contrib/api-development/api-methods.md @@ -25,3 +25,23 @@ - It is idempotent, meaning that calling the same DELETE request multiple times should have the same effect as calling it once. - Use the DELETE method when you want to remove a resource from the server. +- **OPTIONS**: + - The OPTIONS method is used to describe the communication options for the target resource. + - It is idempotent, meaning that calling the same OPTIONS request multiple times should have the same effect as calling it once. + - Use the OPTIONS method when you want to retrieve the communication options for a resource. + +- **HEAD**: + - The HEAD method is similar to the GET method, but it only retrieves the headers of the response without the body. + - It is idempotent, meaning that calling the same HEAD request multiple times should have the same effect as calling it once. + - Use the HEAD method when you want to check the headers of a resource without retrieving the body. + +- **TRACE**: + - The TRACE method is used to test the connectivity between the client and the server. + - It is idempotent, meaning that calling the same TRACE request multiple times should have the same effect as calling it once. + - Use the TRACE method when you want to test the connectivity between the client and the server. + +- **CONNECT**: + - The CONNECT method is used to establish a tunnel to the server using a proxy. + - It is not idempotent, meaning that calling the same CONNECT request multiple times may result in different outcomes. + - Use the CONNECT method when you want to establish a tunnel to the server using a proxy. +