REST API Endpoint
Multiple Choice Easy
Question
In a REST API, what does GET /users/42 typically return?
Hint
The URL path identifies a specific resource.
Explanation
GET /users/42 retrieves the user resource with ID 42. In REST conventions, /users is the collection, and /users/:id is a specific item. GET /users would return all users (or a paginated list). POST /users creates a new user, PUT /users/42 updates, DELETE /users/42 removes.
Related Resources
Related Lessons
- API
Learn about APIs.
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.