← スキル一覧に戻る

api
by hokita
⭐ 0🍴 0📅 2025年11月28日
SKILL.md
name: API description: Reference for the REST API endpoints, request/response formats, and data models. Use when implementing or debugging API-related features.
API Reference
Complete API specification for the Fox English learning service.
Base URL
- API Server (Development):
http://localhost:3001 - Frontend (Development):
http://localhost:3000 - API Base Path:
/api
Endpoints
Detailed endpoint specifications are available in the docs/ directory:
- GET /api/articles - Get a list of all articles
- GET /api/articles/:id - Get a single article by ID
Architecture
The API follows Clean Architecture with these layers:
- Domain Layer - Core business logic (entities, repository interfaces)
- Application Layer - Use cases (business logic orchestration)
- Infrastructure Layer - External dependencies (database, repository implementations)
- Presentation Layer - HTTP interface (controllers, routes, Express app)
Dependency Rule: Inner layers never depend on outer layers. Dependencies point inward.
Key Implementation Details
- Dependency Injection: All dependencies manually wired in
api/src/presentation/routes.ts - Repository Pattern: Domain defines interfaces, infrastructure implements them
- Database: MySQL in production, SQLite in-memory for tests
- Testing: Integration tests in
api/src/__tests__/integration/
Related Skills
- database - Database schemas and table specifications
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です