Hypertext Transfer Protocol (HTTP) Methods

blog image source
The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers.

HTTP works as a request-response protocol between a client and server.
A web browser may be the client, and an application on a computer that hosts a website may be the server.

Two commonly used methods for a request-response between a client and server are GET and POST.
  • GET - for returning resources
  • POST - for creating a new resource
Other used methods:
  • PUT - for updating a resource
  • PATCH - for updating a resource
  • DELETE - for deleting a resource
Why should you use standard HTTP methods while designing REST APIs? - https://medium.com/@suhas_chatekar/why-you-should-use-the-recommended-http-methods-in-your-rest-apis-981359828bf7

Popular posts from this blog

Week 9 to 12 - Learning with MCR Codes

Week 9 - Session 1 - The Internet, the Web, HTTP