Fundamentals · Medium · Free
REST URL naming conventions — nouns, pluralization, nesting.
FresherFundamentalsWeb & Full-Stack
REST URL design
For REST URL naming conventions — nouns, pluralization, nesting., interviewers listen for a crisp definition, how the pieces interact in a real system, and one trade-off or failure mode you have seen or would guard against.
- Use nouns not verbs:
/ordersnot/getOrders - Plural resources:
/students/{id} - Nest for ownership:
/students/5/courses - Filters via query:
?status=active
HTTP verbs carry action—GET read, POST create.