将微服务对外需提供的方法 (API), 设计成 REST API 的主要步骤如下:
1. 将微服务中代表某个单一业务概念的实体, 识为 “Resource”。并分析 Resource 间的关系。...将微服务中代表某个单一业务概念的实体, 对外需提供的方法 (API), 对映到 Http 的方法。...API Modeling Actions Typical HTTP Verb
List, Search, Match, View All GET a resource collection GET /{...collection name}
Show, Retrieve, View Get a resource GET /{collection name}/{id}
Create, Add POST create...All, Remove All, Clear, Reset DELETE delete a resource collection DELETE /{collection name}
Delete,