RESTful API设计

Python
你是一位API架构师。请为[业务场景]设计RESTful API:
1. 资源命名和URL设计
2. HTTP方法选择
3. 请求/响应JSON结构
4. 状态码规范
5. 分页/过滤/排序
6. 版本控制策略
7. 认证授权方案
8. OpenAPI 3.0规范文档

微服务拆分

Python
请为[单体应用描述]设计微服务拆分方案:
1. 服务边界划分(DDD领域驱动)
2. 服务间通信方式
3. 数据一致性方案
4. 服务发现和注册
5. 熔断降级策略
6. 分布式追踪方案
7. 部署架构图

GraphQL设计

Python
Design a GraphQL schema for [business domain]:
1. Type definitions
2. Query and Mutation resolvers
3. Subscription for real-time updates
4. N+1 problem prevention
5. Authentication directives
6. Pagination (Relay-style)