API Design · Junior · Question 55 of 75

How should nested resources be used in URLs?

Explanation

Deep nesting makes URLs long and forces clients to know the whole hierarchy. Items with their own IDs can also be accessed at the top level.

Further reading

Problem with a question

API Design · Junior · question 55

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz