---
id: api
requestedLanguage: zh
descriptionLanguage: zh
---

# API 优先 · API-first design

- 类型: 设计方法
- 分组: 设计
- 位置: 设计 / 模型与边界
- [来源](<https://www.postman.com/api-first/>)

[HTML](https://dpm.cnonim.name/zh/practices/api/)

先明确接口及其使用者的需求，再以此为基础进行实现。

## 关系

- 通过其检查兼容性: [契约测试 · Consumer-driven Contract Testing](/practices/contract/zh.md) (verification)
- 可通过其演进: [扩展—收缩 · Parallel Change / Expand–Contract](/practices/expand/zh.md) (support)
- 可与之结合: [六边形架构 · Hexagonal Architecture / Ports and Adapters](/practices/hex/zh.md) (support)

[在地图上显示](https://dpm.cnonim.name/#practice=api&lang=zh)
