← Back to list

rest-api
by nimranaz148
⭐ 0🍴 0📅 Jan 11, 2026
SKILL.md
name: rest-api description: REST API design principles and implementation patterns. Use when designing API endpoints, creating API clients, or implementing HTTP communication between frontend and backend. allowed-tools: Read, Edit, Write, Glob, Grep, Bash
REST API Skill
Quick Reference
REST (Representational State Transfer) is an architectural style for designing networked applications.
API Endpoints (Based on Spec)
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/{user_id}/tasks | List all tasks |
| POST | /api/{user_id}/tasks | Create a task |
| GET | /api/{user_id}/tasks/{id} | Get task details |
| PUT | /api/{user_id}/tasks/{id} | Update a task |
| DELETE | /api/{user_id}/tasks/{id} | Delete a task |
| PATCH | /api/{user_id}/tasks/{id}/complete | Toggle completion |
HTTP Methods
- GET - Retrieve resources (safe, idempotent)
- POST - Create new resources (not idempotent)
- PUT - Update/replace entire resource (idempotent)
- PATCH - Partial update (not idempotent)
- DELETE - Remove resource (idempotent)
Status Codes
| Code | Meaning | Usage |
|---|---|---|
| 200 | OK | Successful GET, PUT, PATCH |
| 201 | Created | Successful POST (new resource) |
| 204 | No Content | Successful DELETE |
| 400 | Bad Request | Invalid input |
| 401 | Unauthorized | Missing/invalid token |
| 403 | Forbidden | Not user's resource |
| 404 | Not Found | Resource doesn't exist |
| 422 | Unprocessable Entity | Validation error |
| 500 | Internal Server Error | Server error |
Request Format
Headers
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json
Accept: application/json
Body (POST/PUT/PATCH)
{
"title": "Buy groceries",
"description": "Milk, eggs, bread",
"completed": false
}
Response Format
Success (200/201)
{
"id": 1,
"user_id": "user_123",
"title": "Buy groceries",
"description": "Milk, eggs, bread",
"completed": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
Error (4xx/5xx)
{
"detail": "Task not found",
"code": "NOT_FOUND"
}
For Detailed Reference
See REFERENCE.md for:
- Advanced query parameters
- Pagination patterns
- API versioning
- Rate limiting
- OpenAPI documentation
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon