Claude-skill-registry api-protocol
API protocol guide for Sunrei project. Use when writing API endpoints, request/response type naming, and HTTP method conventions.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/api-protocol" ~/.claude/skills/majiayu000-claude-skill-registry-api-protocol && rm -rf "$T"
manifest:
skills/data/api-protocol/SKILL.mdsource content
API Protocol Guide
RESTful API + OpenAPI 3.0 spec
- Request type:
(e.g.,{HttpMethod}{Name}Params
,GetUserParams
)ListUsersParams - Response type:
(e.g.,{HttpMethod}{Name}Result
,GetUserResult
)ListUsersResult
HTTP Method Rules
+ singular → single item (e.g.,GET
)GET /sunreis/{id}
+ plural → list items (e.g.,List
)GET /sunreis
→ createPOST
→ full updatePUT
→ partial updatePATCH
→ deleteDELETE
Response Format
- Success:
or domain key (e.g.,{ "data": ... }
){ "sunreis": [...] } - Error:
{ "error": { "code": "...", "message": "..." } } - Pagination:
{ "items": [...], "nextToken": "..." }