✅ 正确的资源命名(名词,复数)
GET /api/users
GET /api/users/123
GET /api/users/123/orders
POST /api/products
DELETE /api/products/456
❌ 错误的资源命名(动词,不一致)
GET /api/getUsers
POST /api/createProduct
GET /api/user/123 (单复数不一致)
Run npx skillmds@latest add lza6/rest-api-design in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
REST API 设计 It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
lza6 (@lza6) published this skill. Their other Agent Skills are listed on their SkillMD profile.