Skip to content
HTTP

Methods

Core HTTP request methods.

#method#get#post

Code

http
GET /api/users HTTP/1.1
Host: api.example.com
Accept: application/json

---

POST /api/users HTTP/1.1
Host: api.example.com
Content-Type: application/json

{"name":"Alice"}

---

DELETE /api/users/1 HTTP/1.1
Host: api.example.com

---

PUT /api/users/1 HTTP/1.1
Host: api.example.com
Content-Type: application/json

{"name":"Alice2"}