feat: /api/meta/capabilities 디스커버리 마크다운 엔드포인트 (#62) #63
No reviewers
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-62-meta-capabilities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #62.
요약
Claude 스킬이 시작 시점에 한 번 fetch 해 "이 플랫폼이 어떤 데이터를 줄 수 있는지" 한 번에 흡수하기 위한 LLM 친화 마크다운 디스커버리 엔드포인트. 통합 로드맵 Phase 1 의 스킬 통합 시발점.
응답은
text/markdown— JSON 파싱 단계 없이 그대로 LLM 컨텍스트로 흡수.구현 포인트
routers/system.py::meta_capabilities신규 —Request주입으로app.routes를 직접 스캔해 마크다운 생성/,/scalar,/api/version,/api/health,/api/meta/capabilities) 는 본문 안내가 따로 있어 디스커버리 목록에서 제외text/markdown응답 schema 명시POST /api/meta/data-gaps) 안내 텍스트 포함 (미구현 시 무시 안내)본문 구성 (동적)
_COVERAGE_TABLES의 행수 + 최신일app.routes에서APIRoute만 스캔,include_in_schema=True필터테스트
tests/api/test_meta_capabilities.py신규 6 case:text/markdown+ 200 반환/api/meta/symbols,/api/prices/,/api/indicators,/api/analysis/liquidity-snapshot) 가 자동으로 잡히는지전체: 111 passed, ruff clean.
README
"Claude 스킬 통합 — capabilities 부터 시작" 섹션 신규 (#62 본문에 명시된 "스킬 통합 진입 가이드 1단락"). Sprint 1 엔드포인트 목록에도 추가.
후속
Test plan
uv run pytest tests/api/test_meta_capabilities.py -v(6 passed)uv run pytest(111 passed)uv run ruff checkcurl https://stock.xhhan.com/api/meta/capabilities로 실제 응답 확인