REST API Basics
Part of the Web course
You are asked to add an endpoint to an existing API and you freeze on the first decision: is it POST /users/42/deactivate or PATCH /users/42? Both work. Both will ship. But one of them will read as obvious to the next person and one will start an argument in code review.
Picture a filing cabinet. Every drawer and every folder has an address, and the address never says what you intend to do when you get there. The doing is a separate decision: read it, replace it, throw it away. REST splits an API the same way. The URL is the address of a thing. The HTTP method is the verb. ...
Want to learn Web REST API Basics in a real environment?
Click below, get a fresh Linux box with Web ready to go, and work through REST API Basics hands-on with an AI tutor that knows your code.
Start this lessonREST API BasicsWhat you'll learn
- Resources as nouns
- Methods as verbs
- Status codes
- Idempotency
- HATEOAS
- Versioning
Read this lesson in your language
All lessons in this course
14 lessons- 1What Is The Web20 min
- 2HTTP vs HTTPS15 min
- 3Request and Response Anatomy30 min
- 4Cookies, Sessions, and Tokens25 min
- 5DNS Explained25 min
- 6TLS and Certificates30 min
- 7CORS30 min
- 8REST API Basics25 min
- 9WebSockets and SSE25 min
- 10Caching and CDNs25 min
- 11Security Headers25 min
- 12Rate Limiting and Throttling20 min
- 13Monitoring and Logging20 min
- 14Capstone: A Tiny Web Server40 min
