Skip to content

[MESP-258] [VOCAB] 영어 사전 API 연동 기능 #484

Description

@DDINGJOO

개요

Free Dictionary API를 연동하여 영어 단어 조회 기능 구현

상세 내용

  • 단어 검색 시 발음, 정의, 예문, 동의어 제공
  • 기존 단어장 기능과 연동

API 정보

  • API: Free Dictionary API
  • URL: https://api.dictionaryapi.dev/api/v2/entries/en/{word}
  • 비용: 무료
  • API Key: 불필요

응답 예시

{
  "word": "hello",
  "phonetic": "/həˈloʊ/",
  "meanings": [
    {
      "partOfSpeech": "noun",
      "definitions": [
        {
          "definition": "An utterance of 'hello'; a greeting.",
          "example": "she was getting polite


 hellos from people"
        }
      ],
      "synonyms": ["greeting", "welcome"]
    }
  ]
}

AC (Acceptance Criteria)

  • DictionaryApiClient 서비스 구현
  • 단어 조회 API 엔드포인트 구현 (GET /api/dictionary/{word})
  • 단어장 단어 추가 시 자동 정의 채우기 연동
  • 뉴스 기사 내 단어 클릭 시 사전 조회 연동
  • 발음 기호(IPA) 및 오디오 URL 제공

활용 방안

  1. 뉴스 기사 내 어려운 단어 → 바로 사전 조회
  2. 단어장 단어 추가 시 → 자동으로 정의/예문 채우기
  3. 퀴즈 → 단어 뜻 맞추기 문제 생성

연결된 Epic

#384

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions