Skip to content

feat(news): 단어 수집 & Vocabulary 연동 구현 (#472)#489

Merged
DDINGJOO merged 1 commit into
developfrom
feature/472/news-word-collection
Jan 22, 2026
Merged

feat(news): 단어 수집 & Vocabulary 연동 구현 (#472)#489
DDINGJOO merged 1 commit into
developfrom
feature/472/news-word-collection

Conversation

@DDINGJOO

Copy link
Copy Markdown
Contributor

Summary

  • 뉴스에서 단어 수집 및 Vocabulary 도메인 연동 기능

API Endpoints

Method Path Description
POST /news/{articleId}/words 단어 수집
GET /news/words 수집 단어 목록
GET /news/{articleId}/words/{word} 단어 상세 정보
DELETE /news/{articleId}/words/{word} 단어 삭제
POST /news/words/{word}/sync Vocabulary 연동

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

  • Gradle 빌드 성공
  • 단어 수집 테스트
  • 중복 수집 방지 테스트
  • 수집 단어 목록 조회 테스트
  • 단어 상세 정보 조회 테스트
  • 단어 삭제 테스트
  • Vocabulary 연동 테스트

- 단어 수집 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 추가
@github-actions github-actions Bot added backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer labels Jan 22, 2026
@github-actions

github-actions Bot commented Jan 22, 2026

Copy link
Copy Markdown

Jira: MESP-263

@DDINGJOO DDINGJOO merged commit 474108f into develop Jan 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant