Action links are often grouped under an "actions" key with action names as keys and URLs as values.
Step 2: Check each option's format
"actions": {"cancel": "https://api.example.com/orders/123/cancel"} correctly uses an "actions" object with "cancel" as key and the URL as value, which is a clear and common pattern.
Final Answer:
"actions": {"cancel": "https://api.example.com/orders/123/cancel"} -> Option B
Quick Check:
Action links grouped under "actions" = "actions": {"cancel": "https://api.example.com/orders/123/cancel"} [OK]
Quick Trick:Group action links under "actions" key for clarity [OK]
Common Mistakes:
Using HTTP method inside the URL string
Not grouping actions under a common key
Using incorrect HTTP method for cancel
Master "HATEOAS and Linking" in Rest API
9 interactive learning modes - each teaches the same concept differently