AGENT SKILL

restful-apis

RESTful API architecture and implementation patterns

使用场景后端与接口
License 许可
MIT
最近更新
2026-03-01
Stars
★ 3
Forks
2

01 前言 Front Matter

name
restful-apis
license
MIT
metadata
{ "audience": "developers", "category": "api-design" }
description
RESTful API architecture and implementation patterns
compatibility
opencode

02 资源文件 33

03 SKILL.md 正文

What I do

  • Design RESTful endpoints
  • Use proper HTTP verbs
  • Implement HATEOAS
  • Handle errors consistently
  • Add pagination
  • Version APIs

When to use me

When designing and building RESTful web services.

Resources & Endpoints

GET    /api/v1/users          - List
GET    /api/v1/users/:id       - Retrieve
POST   /api/v1/users           - Create
PATCH  /api/v1/users/:id       - Update
DELETE /api/v1/users/:id       - Delete

GET    /api/v1/users/:id/posts - User's posts
POST   /api/v1/users/:id/posts - Create post for user

Query Parameters

?page=2&limit=20     - Pagination
?sort=-created_at    - Sorting
?status=active       - Filtering
?fields=name,email   - Field selection
?include=posts       - Related resources

04 同仓库更多 Skills