Overview - Noun-based resource naming
What is it?
Noun-based resource naming is a way to name parts of a web API using nouns that represent things or objects. Instead of using verbs or actions in the URL, it uses names of resources like 'users' or 'books'. This makes the API easier to understand and consistent. It helps clients know what data they are working with just by looking at the URL.
Why it matters
Without noun-based naming, APIs can become confusing and inconsistent, making it hard for developers to guess how to use them. If URLs used verbs or mixed styles, clients would struggle to predict endpoints, slowing down development and causing errors. Using nouns creates a clear, predictable structure that improves communication between developers and systems.
Where it fits
Before learning noun-based resource naming, you should understand basic web concepts like URLs and HTTP methods (GET, POST, etc.). After this, you can learn about RESTful API design principles and how to handle actions and relationships between resources.