Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 845 Bytes

http-methods.md

File metadata and controls

30 lines (20 loc) · 845 Bytes

HTTP Methods

Native HTTP Actions

  • GET (Safe & Idempotent)
  • POST
  • PUT (Idempotent)
  • DELETE (Idempotent)
  • HEAD
  • OPTIONS
  • TRACE
  • CONNECT

Safe means that, when requested, it does not modify or cause any side effects on the state of the resource.

Idempotent means that, response stays the same, regardless of the number of times it is requested.

Semantics of HTTP APIs

  • GET: Get a representation of the targer resource's state.

  • POST: Let the target resource process the representation enclosed in the request.

  • PUT: Set the target resource's state to the state defined by the representation enclosed in the request.

  • DELETE: Delete the target resource's state.