Endpoint
ELI5 — The Vibe Check
An endpoint is a specific URL that your API listens on for requests. It's like a specific window at a fast food joint — one window for orders, one for payment, one for pickup. Each URL path is one endpoint doing one specific job.
Real Talk
An API endpoint is a specific URL that represents a resource or action in an API. It's the point where the API receives requests and sends responses. Each endpoint is defined by a combination of an HTTP method and a URL path.
Show Me The Code
GET /api/users // Get all users
POST /api/users // Create a user
GET /api/users/:id // Get one user
DELETE /api/users/:id // Delete a user
When You'll Hear This
"Hit the /users endpoint to get the list." / "We need a new endpoint for the search feature."
Related Terms
API (Application Programming Interface)
An API is like a menu at a restaurant. The kitchen (server) can do a bunch of things, but you can only order what's on the menu.
CRUD (Create, Read, Update, Delete)
CRUD is the four things you can do to data: Create it, Read it, Update it, Delete it. Literally every app ever made is just CRUD in a trenchcoat.
REST (Representational State Transfer)
REST is a set of rules for how APIs should behave. Think of it as the etiquette guide for servers and clients talking to each other.
Route
A route is like a road sign that tells incoming requests where to go.
Router
The router is the traffic cop of your backend.