【发布时间】:2019-12-17 05:29:50
【问题描述】:
根据此处找到的命名约定:https://restfulapi.net/resource-naming/,我有一个特定的问题我找不到答案。
以客户和帐户为例,其中可以使用 URN “/customers/{customerId}/accounts” 标识特定“客户”的子集合资源“帐户”,我如何找到多个客户 ID 的帐户?这种情况的命名约定是什么?
是使用过滤器的唯一选择吗?例如:customers/accounts?customerId=12,22
【问题讨论】:
标签: rest api naming-conventions