在现实中我们会遇到各种各样的复杂场景,"There is not a right way" 用来描述API的设计方法再合适不过了,没有一种API设计方式可以应对所有的场景.区别于"Consumer-Driven Contract",本文将描述另外一种设计API的方式:Domain-Driven API.这不是API设计的标准方法,但是他也许可以给你灵感,帮助你设计出更加具有表达力的API. POST /api/customer POST /api/customer/…
Introduction Many approaches to object oriented modeling tend not to scale well when the applications grow in size and complexity. Context Mapping is a general purpose technique, part of the Domain Driven Design (DDD) toolkit, helps the architects an…