[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EMVKWHXSGS3FTFRVF7EETN":3,"skill-same:01M6EMVKWHXSGS3FTFRVF7EETN":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6EMVKWHXSGS3FTFRVF7EETN","api-design",null,"REST API design best practices for consistent, intuitive APIs","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbenny9193\u002Fapi-design\u002FSKILL.md",[],[19,20,21,22,23,24],"design","api design","api","best practices","REST","rest api","2026-11-10 10:12:30",false,"---\nname: api-design\ndescription: REST API design best practices for consistent, intuitive APIs\n---\n\n# API Design Principles\n\nDesign APIs that are intuitive, consistent, and a joy to use.\n\n## URL Structure\n\n### Resources as Nouns\n```\n# GOOD - nouns\nGET \u002Fusers\nGET \u002Fusers\u002F123\nGET \u002Fusers\u002F123\u002Forders\n\n# BAD - verbs\nGET \u002FgetUsers\nGET \u002FfetchUserById\u002F123\nPOST \u002FcreateNewUser\n```\n\n### Plural Resource Names\n```\n# GOOD - plural\nGET \u002Fusers\nGET \u002Forders\nGET \u002Fproducts\n\n# BAD - singular\nGET \u002Fuser\nGET \u002Forder\n```\n\n### Hierarchical Relationships\n```\n# Parent-child relationships\nGET \u002Fusers\u002F123\u002Forders          # Orders for user 123\nGET \u002Forders\u002F456\u002Fitems          # Items in order 456\n\n# Avoid deep nesting (max 2 levels)\n# BAD\nGET \u002Fusers\u002F123\u002Forders\u002F456\u002Fitems\u002F789\u002Freviews\n\n# GOOD - flatten when needed\nGET \u002Forder-items\u002F789\u002Freviews\n```\n\n## HTTP Methods\n\n| Method | Usage | Idempotent | Safe |\n|--------|-------|------------|------|\n| GET | Read resource | Yes | Yes |\n| POST | Create resource | No | No |\n| PUT | Replace resource | Yes | No |\n| PATCH | Partial update | Yes | No |\n| DELETE | Remove resource | Yes | No |\n\n```\nGET    \u002Fusers          # List users\nPOST   \u002Fusers          # Create user\nGET    \u002Fusers\u002F123      # Get user 123\nPUT    \u002Fusers\u002F123      # Replace user 123\nPATCH  \u002Fusers\u002F123      # Update user 123\nDELETE \u002Fusers\u002F123      # Delete user 123\n```\n\n## Request\u002FResponse Format\n\n### Consistent JSON Structure\n```json\n\u002F\u002F Success response\n{\n  \"data\": {\n    \"id\": \"123\",\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\"\n  }\n}\n\n\u002F\u002F Collection response\n{\n  \"data\": [\n    { \"id\": \"123\", \"name\": \"John\" },\n    { \"id\": \"456\", \"name\": \"Jane\" }\n  ],\n  \"meta\": {\n    \"total\": 100,\n    \"page\": 1,\n    \"perPage\": 20\n  }\n}\n\n\u002F\u002F Error response\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Invalid email format\",\n    \"details\": [\n      { \"field\": \"email\", \"message\": \"Must be a valid email\" }\n    ]\n  }\n}\n```\n\n### Use camelCase\n```json\n\u002F\u002F GOOD\n{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"emailAddress\": \"john@example.com\"\n}\n\n\u002F\u002F BAD - inconsistent\n{\n  \"first_name\": \"John\",\n  \"LastName\": \"Doe\",\n  \"email-address\": \"john@example.com\"\n}\n```\n\n## Status Codes\n\n### Success (2xx)\n```\n200 OK           - GET, PUT, PATCH success\n201 Created      - POST success (include Location header)\n204 No Content   - DELETE success\n```\n\n### Client Errors (4xx)\n```\n400 Bad Request     - Invalid syntax, validation error\n401 Unauthorized    - No\u002Finvalid authentication\n403 Forbidden       - Authenticated but not allowed\n404 Not Found       - Resource doesn't exist\n409 Conflict        - State conflict (duplicate, version)\n422 Unprocessable   - Valid syntax but semantic error\n429 Too Many Requests - Rate limited\n```\n\n### Server Errors (5xx)\n```\n500 Internal Server Error - Unexpected error\n502 Bad Gateway          - Upstream service failed\n503 Service Unavailable  - Temporarily unavailable\n504 Gateway Timeout      - Upstream timeout\n```\n\n## Pagination\n\n### Offset-based (simple)\n```\nGET \u002Fusers?page=2&perPage=20\n\nResponse:\n{\n  \"data\": [...],\n  \"meta\": {\n    \"total\": 100,\n    \"page\": 2,\n    \"perPage\": 20,\n    \"totalPages\": 5\n  },\n  \"links\": {\n    \"first\": \"\u002Fusers?page=1&perPage=20\",\n    \"prev\": \"\u002Fusers?page=1&perPage=20\",\n    \"next\": \"\u002Fusers?page=3&perPage=20\",\n    \"last\": \"\u002Fusers?page=5&perPage=20\"\n  }\n}\n```\n\n### Cursor-based (scalable)\n```\nGET \u002Fusers?cursor=eyJpZCI6MTIzfQ&limit=20\n\nResponse:\n{\n  \"data\": [...],\n  \"meta\": {\n    \"hasMore\": true,\n    \"nextCursor\": \"eyJpZCI6MTQzfQ\"\n  }\n}\n```\n\n## Filtering & Sorting\n\n### Filtering\n```\nGET \u002Fusers?status=active\nGET \u002Fusers?role=admin&status=active\nGET \u002Fusers?createdAt[gte]=2024-01-01\nGET \u002Fusers?name[contains]=john\n```\n\n### Sorting\n```\nGET \u002Fusers?sort=name           # Ascending\nGET \u002Fusers?sort=-createdAt     # Descending (prefix -)\nGET \u002Fusers?sort=lastName,firstName\n```\n\n### Field Selection\n```\nGET \u002Fusers?fields=id,name,email\nGET \u002Fusers\u002F123?fields=id,name,email\n```\n\n## Versioning\n\n### URL Path (recommended)\n```\nGET \u002Fv1\u002Fusers\nGET \u002Fv2\u002Fusers\n```\n\n### Header\n```\nGET \u002Fusers\nAccept: application\u002Fvnd.api+json;version=2\n```\n\n## Authentication\n\n### Bearer Token\n```\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIs...\n```\n\n### API Key\n```\nX-API-Key: sk_live_abc123\n# Or in query (less secure)\nGET \u002Fusers?api_key=sk_live_abc123\n```\n\n## Rate Limiting\n\nInclude headers:\n```\nX-RateLimit-Limit: 100\nX-RateLimit-Remaining: 95\nX-RateLimit-Reset: 1640995200\nRetry-After: 60\n```\n\n## Documentation\n\nEvery endpoint needs:\n- Description of what it does\n- Request parameters with types\n- Request body schema\n- Response schema for each status code\n- Example request\u002Fresponse\n- Error cases\n\n```yaml\n# OpenAPI example\n\u002Fusers:\n  post:\n    summary: Create a new user\n    requestBody:\n      required: true\n      content:\n        application\u002Fjson:\n          schema:\n            $ref: '#\u002Fcomponents\u002Fschemas\u002FCreateUser'\n    responses:\n      '201':\n        description: User created\n        content:\n          application\u002Fjson:\n            schema:\n              $ref: '#\u002Fcomponents\u002Fschemas\u002FUser'\n      '400':\n        description: Validation error\n```\n\n## Common Mistakes\n\n| Mistake | Problem | Fix |\n|---------|---------|-----|\n| Verbs in URLs | `\u002FgetUser` | Use `\u002Fusers\u002F:id` |\n| Inconsistent naming | Mix of cases | Pick one (camelCase) |\n| Wrong status codes | 200 for errors | Use 4xx\u002F5xx appropriately |\n| No pagination | Memory issues | Always paginate collections |\n| Breaking changes | Clients break | Version your API |\n| No rate limiting | Abuse | Implement limits |\n| Exposing internals | Security risk | Transform responses |\n\n## Checklist\n\n- [ ] URLs use nouns, not verbs\n- [ ] HTTP methods used correctly\n- [ ] Consistent response format\n- [ ] Appropriate status codes\n- [ ] Pagination for collections\n- [ ] Filtering and sorting support\n- [ ] Rate limiting implemented\n- [ ] Authentication documented\n- [ ] Errors are descriptive\n- [ ] API is versioned\n","# API Design Principles\n\nDesign APIs that are intuitive, consistent, and a joy to use.\n\n## URL Structure\n\n### Resources as Nouns\n```\n# GOOD - nouns\nGET \u002Fusers\nGET \u002Fusers\u002F123\nGET \u002Fusers\u002F123\u002Forders\n\n# BAD - verbs\nGET \u002FgetUsers\nGET \u002FfetchUserById\u002F123\nPOST \u002FcreateNewUser\n```\n\n### Plural Resource Names\n```\n# GOOD - plural\nGET \u002Fusers\nGET \u002Forders\nGET \u002Fproducts\n\n# BAD - singular\nGET \u002Fuser\nGET \u002Forder\n```\n\n### Hierarchical Relationships\n```\n# Parent-child relationships\nGET \u002Fusers\u002F123\u002Forders          # Orders for user 123\nGET \u002Forders\u002F456\u002Fitems          # Items in order 456\n\n# Avoid deep nesting (max 2 levels)\n# BAD\nGET \u002Fusers\u002F123\u002Forders\u002F456\u002Fitems\u002F789\u002Freviews\n\n# GOOD - flatten when needed\nGET \u002Forder-items\u002F789\u002Freviews\n```\n\n## HTTP Methods\n\n| Method | Usage | Idempotent | Safe |\n|--------|-------|------------|------|\n| GET | Read resource | Yes | Yes |\n| POST | Create resource | No | No |\n| PUT | Replace resource | Yes | No |\n| PATCH | Partial update | Yes | No |\n| DELETE | Remove resource | Yes | No |\n\n```\nGET    \u002Fusers          # List users\nPOST   \u002Fusers          # Create user\nGET    \u002Fusers\u002F123      # Get user 123\nPUT    \u002Fusers\u002F123      # Replace user 123\nPATCH  \u002Fusers\u002F123      # Update user 123\nDELETE \u002Fusers\u002F123      # Delete user 123\n```\n\n## Request\u002FResponse Format\n\n### Consistent JSON Structure\n```json\n\u002F\u002F Success response\n{\n  \"data\": {\n    \"id\": \"123\",\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\"\n  }\n}\n\n\u002F\u002F Collection response\n{\n  \"data\": [\n    { \"id\": \"123\", \"name\": \"John\" },\n    { \"id\": \"456\", \"name\": \"Jane\" }\n  ],\n  \"meta\": {\n    \"total\": 100,\n    \"page\": 1,\n    \"perPage\": 20\n  }\n}\n\n\u002F\u002F Error response\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Invalid email format\",\n    \"details\": [\n      { \"field\": \"email\", \"message\": \"Must be a valid email\" }\n    ]\n  }\n}\n```\n\n### Use camelCase\n```json\n\u002F\u002F GOOD\n{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"emailAddress\": \"john@example.com\"\n}\n\n\u002F\u002F BAD - inconsistent\n{\n  \"first_name\": \"John\",\n  \"LastName\": \"Doe\",\n  \"email-address\": \"john@example.com\"\n}\n```\n\n## Status Codes\n\n### Success (2xx)\n```\n200 OK           - GET, PUT, PATCH success\n201 Created      - POST success (include Location header)\n204 No Content   - DELETE success\n```\n\n### Client Errors (4xx)\n```\n400 Bad Request     - Invalid syntax, validation error\n401 Unauthorized    - No\u002Finvalid authentication\n403 Forbidden       - Authenticated but not allowed\n404 Not Found       - Resource doesn't exist\n409 Conflict        - State conflict (duplicate, version)\n422 Unprocessable   - Valid syntax but semantic error\n429 Too Many Requests - Rate limited\n```\n\n### Server Errors (5xx)\n```\n500 Internal Server Error - Unexpected error\n502 Bad Gateway          - Upstream service failed\n503 Service Unavailable  - Temporarily unavailable\n504 Gateway Timeout      - Upstream timeout\n```\n\n## Pagination\n\n### Offset-based (simple)\n```\nGET \u002Fusers?page=2&perPage=20\n\nResponse:\n{\n  \"data\": [...],\n  \"meta\": {\n    \"total\": 100,\n    \"page\": 2,\n    \"perPage\": 20,\n    \"totalPages\": 5\n  },\n  \"links\": {\n    \"first\": \"\u002Fusers?page=1&perPage=20\",\n    \"prev\": \"\u002Fusers?page=1&perPage=20\",\n    \"next\": \"\u002Fusers?page=3&perPage=20\",\n    \"last\": \"\u002Fusers?page=5&perPage=20\"\n  }\n}\n```\n\n### Cursor-based (scalable)\n```\nGET \u002Fusers?cursor=eyJpZCI6MTIzfQ&limit=20\n\nResponse:\n{\n  \"data\": [...],\n  \"meta\": {\n    \"hasMore\": true,\n    \"nextCursor\": \"eyJpZCI6MTQzfQ\"\n  }\n}\n```\n\n## Filtering & Sorting\n\n### Filtering\n```\nGET \u002Fusers?status=active\nGET \u002Fusers?role=admin&status=active\nGET \u002Fusers?createdAt[gte]=2024-01-01\nGET \u002Fusers?name[contains]=john\n```\n\n### Sorting\n```\nGET \u002Fusers?sort=name           # Ascending\nGET \u002Fusers?sort=-createdAt     # Descending (prefix -)\nGET \u002Fusers?sort=lastName,firstName\n```\n\n### Field Selection\n```\nGET \u002Fusers?fields=id,name,email\nGET \u002Fusers\u002F123?fields=id,name,email\n```\n\n## Versioning\n\n### URL Path (recommended)\n```\nGET \u002Fv1\u002Fusers\nGET \u002Fv2\u002Fusers\n```\n\n### Header\n```\nGET \u002Fusers\nAccept: application\u002Fvnd.api+json;version=2\n```\n\n## Authentication\n\n### Bearer Token\n```\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIs...\n```\n\n### API Key\n```\nX-API-Key: sk_live_abc123\n# Or in query (less secure)\nGET \u002Fusers?api_key=sk_live_abc123\n```\n\n## Rate Limiting\n\nInclude headers:\n```\nX-RateLimit-Limit: 100\nX-RateLimit-Remaining: 95\nX-RateLimit-Reset: 1640995200\nRetry-After: 60\n```\n\n## Documentation\n\nEvery endpoint needs:\n- Description of what it does\n- Request parameters with types\n- Request body schema\n- Response schema for each status code\n- Example request\u002Fresponse\n- Error cases\n\n```yaml\n# OpenAPI example\n\u002Fusers:\n  post:\n    summary: Create a new user\n    requestBody:\n      required: true\n      content:\n        application\u002Fjson:\n          schema:\n            $ref: '#\u002Fcomponents\u002Fschemas\u002FCreateUser'\n    responses:\n      '201':\n        description: User created\n        content:\n          application\u002Fjson:\n            schema:\n              $ref: '#\u002Fcomponents\u002Fschemas\u002FUser'\n      '400':\n        description: Validation error\n```\n\n## Common Mistakes\n\n| Mistake | Problem | Fix |\n|---------|---------|-----|\n| Verbs in URLs | `\u002FgetUser` | Use `\u002Fusers\u002F:id` |\n| Inconsistent naming | Mix of cases | Pick one (camelCase) |\n| Wrong status codes | 200 for errors | Use 4xx\u002F5xx appropriately |\n| No pagination | Memory issues | Always paginate collections |\n| Breaking changes | Clients break | Version your API |\n| No rate limiting | Abuse | Implement limits |\n| Exposing internals | Security risk | Transform responses |\n\n## Checklist\n\n- [ ] URLs use nouns, not verbs\n- [ ] HTTP methods used correctly\n- [ ] Consistent response format\n- [ ] Appropriate status codes\n- [ ] Pagination for collections\n- [ ] Filtering and sorting support\n- [ ] Rate limiting implemented\n- [ ] Authentication documented\n- [ ] Errors are descriptive\n- [ ] API is versioned\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fbenny9193\u002Fapi-design",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill api-design",{"tool":45,"command":46},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill api-design",{"tool":48,"command":49},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill api-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbenny9193\u002Fapi-design\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"skill-report.json","REFERENCE","参考文档",13383,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbenny9193\u002Fapi-design\u002Fskill-report.json",[60,69,78,87,93,99],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":25},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[66,67,68],"model","model hierarchy","model hierarchy skill",{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":25},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[75,76,77],"MCP","zoom","zoom mcp",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":25},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[84,85,86,76],"sdk","zoom apps sdk","apps",{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":25},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[89],{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":25},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[95],{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":25},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[101]]