I have a resource Customer:
{
"active": true,
"addresses": [...],
"company_name": "My Products",
"customer_account": "MMM474",
"customer_id": 6163,
"emails": [...],
"phones": [...],
"website": "" }
and a related resource Address.
Which url for accessing Address is more RESTful:
http://domain.tlc/api/v1/customeraddresses/[id]/
or
http://domain.tlc/api/v1/customers/[id]/addresses/
([id]
is an ID of particular customer, customer_id
.)