Loading...
Loading...
Compare original and translation side by side
API design principles and decision-making for 2025. Learn to THINK, not copy fixed patterns.
2025年API设计原则与决策制定指南。 学会思考,而非照搬固定模式。
| File | Description | When to Read |
|---|---|---|
| REST vs GraphQL vs tRPC decision tree | Choosing API type |
| Resource naming, HTTP methods, status codes | Designing REST API |
| Envelope pattern, error format, pagination | Response structure |
| Schema design, when to use, security | Considering GraphQL |
| TypeScript monorepo, type safety | TS fullstack projects |
| URI/Header/Query versioning | API evolution planning |
| JWT, OAuth, Passkey, API Keys | Auth pattern selection |
| Token bucket, sliding window | API protection |
| OpenAPI/Swagger best practices | Documentation |
| OWASP API Top 10, auth/authz testing | Security audits |
| 文件 | 描述 | 阅读时机 |
|---|---|---|
| REST、GraphQL与tRPC的决策树 | 选择API类型时 |
| 资源命名、HTTP方法、状态码 | 设计REST API时 |
| 信封模式、错误格式、分页 | 设计响应结构时 |
| 模式设计、适用场景、安全 | 考虑使用GraphQL时 |
| TypeScript monorepo、类型安全 | 开发TS全栈项目时 |
| URI/Header/Query版本控制 | 规划API演进时 |
| JWT、OAuth、Passkey、API密钥 | 选择认证模式时 |
| 令牌桶、滑动窗口 | 保护API时 |
| OpenAPI/Swagger最佳实践 | 编写文档时 |
| OWASP API Top 10、认证/授权测试 | 安全审计时 |
| Need | Skill |
|---|---|
| API implementation | |
| Data structure | |
| Security details | |
| 需求 | 技能 |
|---|---|
| API实现 | |
| 数据结构 | |
| 安全细节 | |
| Script | Purpose | Command |
|---|---|---|
| API endpoint validation | |
| 脚本 | 用途 | 命令 |
|---|---|---|
| API端点验证 | |