スキル一覧に戻る
nimranaz148

rest-api

by nimranaz148

0🍴 0📅 2026年1月11日
GitHubで見るManusで実行

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)

MethodEndpointDescription
GET/api/{user_id}/tasksList all tasks
POST/api/{user_id}/tasksCreate 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}/completeToggle 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

CodeMeaningUsage
200OKSuccessful GET, PUT, PATCH
201CreatedSuccessful POST (new resource)
204No ContentSuccessful DELETE
400Bad RequestInvalid input
401UnauthorizedMissing/invalid token
403ForbiddenNot user's resource
404Not FoundResource doesn't exist
422Unprocessable EntityValidation error
500Internal Server ErrorServer 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

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です