项目文件夹

文件
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 行
1.8 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [api-version] | --v1 | --v2 | --graphql-hybrid | --openapi\ndescription: Design RESTful API architecture with comprehensive endpoints, authentication, and documentation\n---\n\n# Design REST API\n\nDesign comprehensive RESTful API architecture: **$ARGUMENTS**\n\n## Current Application State\n\n- Framework detection: @package.json or @requirements.txt (Express, FastAPI, Spring Boot, etc.)\n- Existing API: !`grep -r \"route\\|endpoint\\|@app\\\\.route\" src/ 2>/dev/null | wc -l` routes found\n- Authentication: !`grep -r \"auth\\|jwt\\|session\" src/ 2>/dev/null | wc -l` auth components\n- Documentation: @swagger.yaml or @openapi.json (if exists)\n\n## Task\n\nDesign complete RESTful API with industry best practices and comprehensive functionality:\n\n**API Version**: Use $ARGUMENTS to specify API version, GraphQL hybrid approach, or OpenAPI specification\n\n**API Architecture**:\n1. **Resource Design** - RESTful endpoints, HTTP methods, URL structure, resource relationships\n2. **Request/Response Models** - Data validation, serialization, error handling, status codes\n3. **Authentication & Authorization** - JWT, OAuth, RBAC, API keys, rate limiting\n4. **API Documentation** - OpenAPI/Swagger specs, interactive documentation, code examples\n5. **Versioning Strategy** - URL, header, or content-type based versioning\n6. **Performance & Security** - Caching, pagination, CORS, input validation, SQL injection prevention\n\n**Advanced Features**: Real-time capabilities, file uploads, batch operations, webhooks, and monitoring integration.\n\n**Standards Compliance**: Follow REST principles, HTTP specifications, and API design best practices.\n\n**Output**: Complete API specification with endpoints, authentication, validation, documentation, and client SDKs."}