Skip to content

Endpoint vs URL vs route vs path

A URL names a resource, a path is the URL's directory part, a route is the server's handler, and an endpoint is the method-plus-URL pair clients call.

Term

Example

Role

URL

https://api.example.com/users/42

Full locator

Path

/users/42

URL without host and scheme

Route

GET /users/{id}

Server's matching rule

Endpoint

GET /users/42

Method + URL, the callable unit