Bird
0
0

Why is it important in resource-based design thinking to keep URIs stable and not include actions like 'get' or 'update' in them?

hard📝 Conceptual Q10 of 15
Rest API - REST API Fundamentals
Why is it important in resource-based design thinking to keep URIs stable and not include actions like 'get' or 'update' in them?
ABecause including actions makes URIs shorter
BBecause actions in URIs improve caching automatically
CBecause URIs represent resources, and actions are defined by HTTP methods
DBecause HTTP methods cannot be used without action words in URIs
Step-by-Step Solution
Solution:
  1. Step 1: Understand URI and HTTP method roles

    URIs identify resources; HTTP methods define actions like GET or POST.
  2. Step 2: Analyze why actions in URIs are discouraged

    Including actions breaks REST principles and makes URIs less stable and predictable.
  3. Final Answer:

    Because URIs represent resources, and actions are defined by HTTP methods -> Option C
  4. Quick Check:

    URI = resource, method = action [OK]
Quick Trick: Keep URIs resource-focused; use HTTP methods for actions [OK]
Common Mistakes:
  • Mixing actions into URIs
  • Assuming URIs define HTTP methods
  • Thinking actions in URIs improve caching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes