feat(news): 단어 수집 & Vocabulary 연동 구현 (#472)#489
Merged
Conversation
- 단어 수집 API (POST /news/{articleId}/words)
- 수집 단어 목록 API (GET /news/words)
- 단어 상세 조회 API (GET /news/{articleId}/words/{word})
- 단어 삭제 API (DELETE /news/{articleId}/words/{word})
- Vocabulary 연동 API (POST /news/words/{word}/sync)
- NewsWordCollect 모델 추가
- NewsWordRepository 추가
- NewsWordService 추가
|
Jira: MESP-263 |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
API Endpoints
Request/Response Examples
단어 수집 (POST /news/{articleId}/words)
Request:
{ "word": "revenue", "context": "The company's revenue increased by 20%." }Response:
{ "word": "revenue", "meaning": "수익, 매출", "context": "The company's revenue increased by 20%.", "articleId": "abc123", "syncedToVocab": false }수집 단어 목록 (GET /news/words)
{ "words": [...], "stats": { "totalCollected": 25, "syncedToVocab": 10 }, "count": 10 }Changes
NewsWordCollect: 단어 수집 모델NewsWordRepository: 단어 수집 저장소NewsWordService: 단어 수집 및 Vocabulary 연동 서비스NewsHandler: 단어 API 엔드포인트 추가template.yaml: API Gateway 이벤트 및 Vocabulary 테이블 권한 추가Related Issue
Test Plan