[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXH9W9SF7PDH9J1F3ESHAD":3,"skill-same:01M6CXH9W9SF7PDH9J1F3ESHAD":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":5,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":13,"ownerHtmlUrl":50,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":51,"install":52,"resources":65},"01M6CXH9W9SF7PDH9J1F3ESHAD","rest-api","REST API 设计与最佳实践","REST API design best practices and patterns","REST API 设计最佳实践与模式","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH",null,"01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Frest-api\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CJ3T58C1GFPAH8M3Y8VR5K","后端开发","SCENARIO","使用场景",[30,31,32,33,34,35,36,37],"REST","api","rest api","design","api design","best practices","opencode","patterns","2026-11-10 10:12:30",false,"---\nname: rest-api\ndescription: REST API design best practices and patterns\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: api-design\n---\n## What I do\n- Design clean REST APIs following best practices\n- Implement proper HTTP methods and status codes\n- Handle pagination, filtering, and sorting\n- Version APIs properly\n- Document APIs with OpenAPI\u002FSwagger\n- Implement authentication and authorization\n- Handle errors consistently\n- Use HATEOAS where appropriate\n\n## When to use me\nWhen designing or implementing REST APIs.\n\n## REST Design Principles\n```\nResources: \u002Fusers, \u002Fusers\u002F{id}, \u002Fusers\u002F{id}\u002Fposts\nCollections: \u002Fposts, \u002Fposts?status=published\nActions as sub-resources: \u002Fusers\u002F{id}\u002Factivate, \u002Fusers\u002F{id}\u002Fdeactivate\n\nHTTP Methods:\nGET     - Retrieve resource(s)\nPOST    - Create resource(s)\nPUT     - Replace resource\nPATCH   - Partial update\nDELETE  - Remove resource\n\nStatus Codes:\n200 OK - Success\n201 Created - Resource created\n204 No Content - Success, no body\n400 Bad Request - Invalid input\n401 Unauthorized - Authentication required\n403 Forbidden - Authenticated but not authorized\n404 Not Found - Resource doesn't exist\n409 Conflict - Resource state conflict\n422 Unprocessable Entity - Validation errors\n429 Too Many Requests - Rate limiting\n500 Internal Server Error - Server error\n```\n\n## API Response Format\n```json\n{\n  \"data\": {\n    \"id\": \"123\",\n    \"type\": \"user\",\n    \"attributes\": {\n      \"email\": \"user@example.com\",\n      \"name\": \"John Doe\",\n      \"createdAt\": \"2024-01-15T10:30:00Z\"\n    },\n    \"relationships\": {\n      \"posts\": {\n        \"links\": {\n          \"related\": \"\u002Fusers\u002F123\u002Fposts\"\n        }\n      }\n    },\n    \"links\": {\n      \"self\": \"\u002Fusers\u002F123\"\n    }\n  },\n  \"meta\": {\n    \"copyright\": \"2024\"\n  }\n}\n```\n\n## Error Response Format\n```json\n{\n  \"errors\": [\n    {\n      \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"status\": 422,\n      \"code\": \"VALIDATION_ERROR\",\n      \"title\": \"Validation failed\",\n      \"detail\": \"The 'email' field must be a valid email address\",\n      \"source\": {\n        \"pointer\": \"\u002Fdata\u002Fattributes\u002Femail\"\n      },\n      \"meta\": {\n        \"field\": \"email\",\n        \"value\": \"invalid-email\"\n      }\n    }\n  ]\n}\n```\n\n## Collection Responses\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"1\",\n      \"type\": \"user\",\n      \"attributes\": { \"name\": \"User 1\" }\n    },\n    {\n      \"id\": \"2\",\n      \"type\": \"user\",\n      \"attributes\": { \"name\": \"User 2\" }\n    }\n  ],\n  \"links\": {\n    \"self\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=1&page[size]=10\",\n    \"first\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=1&page[size]=10\",\n    \"last\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=10&page[size]=10\",\n    \"next\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=2&page[size]=10\",\n    \"prev\": null\n  },\n  \"meta\": {\n    \"totalCount\": 100,\n    \"totalPages\": 10,\n    \"currentPage\": 1,\n    \"pageSize\": 10\n  }\n}\n```\n\n## Query Parameters\n```\nFiltering:      ?status=published&author=123\nSorting:        ?sort=-createdAt,title\nPagination:     ?page[number]=2&page[size]=20\nFields:         ?fields[user]=email,name\nIncluding:      ?include=posts,posts.comments\nSparse Fields: ?fields[user]=id,name&fields[post]=id,title\nSearch:         ?search=keyword\n```\n\n## API Versioning\n```\nURL: \u002Fapi\u002Fv1\u002Fusers\nHeader: Accept: application\u002Fvnd.api+json; version=1\n```\n\n## Best Practices\n- Use plural nouns for resources: `\u002Fusers` not `\u002Fuser`\n- Use nouns for resources, not verbs\n- Return appropriate headers (ETag, Last-Modified)\n- Use idempotent operations for safety\n- Implement rate limiting\n- Use HTTPS only\n- Cache with proper headers\n- Document breaking changes in new versions\n","## What I do\n- Design clean REST APIs following best practices\n- Implement proper HTTP methods and status codes\n- Handle pagination, filtering, and sorting\n- Version APIs properly\n- Document APIs with OpenAPI\u002FSwagger\n- Implement authentication and authorization\n- Handle errors consistently\n- Use HATEOAS where appropriate\n\n## When to use me\nWhen designing or implementing REST APIs.\n\n## REST Design Principles\n```\nResources: \u002Fusers, \u002Fusers\u002F{id}, \u002Fusers\u002F{id}\u002Fposts\nCollections: \u002Fposts, \u002Fposts?status=published\nActions as sub-resources: \u002Fusers\u002F{id}\u002Factivate, \u002Fusers\u002F{id}\u002Fdeactivate\n\nHTTP Methods:\nGET     - Retrieve resource(s)\nPOST    - Create resource(s)\nPUT     - Replace resource\nPATCH   - Partial update\nDELETE  - Remove resource\n\nStatus Codes:\n200 OK - Success\n201 Created - Resource created\n204 No Content - Success, no body\n400 Bad Request - Invalid input\n401 Unauthorized - Authentication required\n403 Forbidden - Authenticated but not authorized\n404 Not Found - Resource doesn't exist\n409 Conflict - Resource state conflict\n422 Unprocessable Entity - Validation errors\n429 Too Many Requests - Rate limiting\n500 Internal Server Error - Server error\n```\n\n## API Response Format\n```json\n{\n  \"data\": {\n    \"id\": \"123\",\n    \"type\": \"user\",\n    \"attributes\": {\n      \"email\": \"user@example.com\",\n      \"name\": \"John Doe\",\n      \"createdAt\": \"2024-01-15T10:30:00Z\"\n    },\n    \"relationships\": {\n      \"posts\": {\n        \"links\": {\n          \"related\": \"\u002Fusers\u002F123\u002Fposts\"\n        }\n      }\n    },\n    \"links\": {\n      \"self\": \"\u002Fusers\u002F123\"\n    }\n  },\n  \"meta\": {\n    \"copyright\": \"2024\"\n  }\n}\n```\n\n## Error Response Format\n```json\n{\n  \"errors\": [\n    {\n      \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"status\": 422,\n      \"code\": \"VALIDATION_ERROR\",\n      \"title\": \"Validation failed\",\n      \"detail\": \"The 'email' field must be a valid email address\",\n      \"source\": {\n        \"pointer\": \"\u002Fdata\u002Fattributes\u002Femail\"\n      },\n      \"meta\": {\n        \"field\": \"email\",\n        \"value\": \"invalid-email\"\n      }\n    }\n  ]\n}\n```\n\n## Collection Responses\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"1\",\n      \"type\": \"user\",\n      \"attributes\": { \"name\": \"User 1\" }\n    },\n    {\n      \"id\": \"2\",\n      \"type\": \"user\",\n      \"attributes\": { \"name\": \"User 2\" }\n    }\n  ],\n  \"links\": {\n    \"self\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=1&page[size]=10\",\n    \"first\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=1&page[size]=10\",\n    \"last\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=10&page[size]=10\",\n    \"next\": \"\u002Fapi\u002Fv1\u002Fusers?page[number]=2&page[size]=10\",\n    \"prev\": null\n  },\n  \"meta\": {\n    \"totalCount\": 100,\n    \"totalPages\": 10,\n    \"currentPage\": 1,\n    \"pageSize\": 10\n  }\n}\n```\n\n## Query Parameters\n```\nFiltering:      ?status=published&author=123\nSorting:        ?sort=-createdAt,title\nPagination:     ?page[number]=2&page[size]=20\nFields:         ?fields[user]=email,name\nIncluding:      ?include=posts,posts.comments\nSparse Fields: ?fields[user]=id,name&fields[post]=id,title\nSearch:         ?search=keyword\n```\n\n## API Versioning\n```\nURL: \u002Fapi\u002Fv1\u002Fusers\nHeader: Accept: application\u002Fvnd.api+json; version=1\n```\n\n## Best Practices\n- Use plural nouns for resources: `\u002Fusers` not `\u002Fuser`\n- Use nouns for resources, not verbs\n- Return appropriate headers (ETag, Last-Modified)\n- Use idempotent operations for safety\n- Implement rate limiting\n- Use HTTPS only\n- Cache with proper headers\n- Document breaking changes in new versions\n",{"name":5,"license":16,"metadata":43,"description":7,"compatibility":36},{"audience":44,"category":45},"developers","api-design","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":9,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill rest-api",{"tool":58,"command":59},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill rest-api",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill rest-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Frest-api\u002FSKILL.md",true,[],[67,78,88,97,107,116],{"skillNo":68,"name":69,"nameZh":13,"description":70,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":38},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[69,74,75,76,36,77],"platform","cross-platform","mobile","development",{"skillNo":79,"name":80,"nameZh":13,"description":81,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":38},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[80,85,36,86,87],"data wrangling","science","data",{"skillNo":89,"name":90,"nameZh":13,"description":91,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":38},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[90,95,36,96],"system","scripting",{"skillNo":98,"name":99,"nameZh":13,"description":100,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":38},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[104,105,36,106,87],"wide column","databases","model",{"skillNo":108,"name":109,"nameZh":13,"description":110,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":38},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[114,105,36,115],"wide column stores","database",{"skillNo":117,"name":118,"nameZh":13,"description":119,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":38},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[118,123,124,125,36,35,126],"websocket","real-time","time","implementation"]