Node.js
beginner
15 min
HTTP Methods
Learn about HTTP Methods in Node.js.
HTTP Methods
HTTP methods define the action the client wants to perform. Common methods are:
- GET — Read data
- POST — Create data
- PUT — Update data (full)
- PATCH — Update data (partial)
- DELETE — Remove data
Practice
For a blog API, which method would you use to create a post? To get all posts? To delete a post?