I am designing a REST API and figured I'll just look at how others are naming their resources and choosing the routes.
I look at Twitter's API and see that they have nested resources. For example:
https://dev.twitter.com/rest/reference/get/statuses/retweets_of_me
The resource is called retweets_of_me
but it's also nested under statuses
.
Does this mean that there is a logical association between the two resources? I can pick whatever routes I want to use but arbitrarily nesting routes probably isn't good practice.