我有一个资源客户:
{
"active": true,
"addresses": [...],
"company_name": "My Products",
"customer_account": "MMM474",
"customer_id": 6163,
"emails": [...],
"phones": [...],
"website": "" }
以及相关的资源地址。
访问 Address 的哪个 url 更 RESTful:
http://domain.tlc/api/v1/customeraddresses/[id]/
或者
http://domain.tlc/api/v1/customers/[id]/addresses/
([id]
是特定客户的 ID,。customer_id
)