REST Endpoint Concept
Question
Which statement best describes a REST API endpoint like GET /users/42?
Hint
GET retrieves data. The URL path identifies the resource.
Explanation
A REST endpoint like GET /users/42 combines an HTTP method (GET) with a URL path (/users/42) to identify an operation on a resource. GET means 'retrieve', and /users/42 identifies user 42. The API returns that user's data (often as JSON). It is not a delete command (that would be DELETE), not a JS function, and not an HTML page — REST APIs typically return data, not markup.
Related Resources
Related Lessons
- API
Learn about REST API design and endpoints.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.