Skip to content

[Task] 일일 학습 API 서비스 구현 #66

Description

@DDINGJOO

상위 Story

목표

일일 학습 단어 조회, 학습 완료 표시 API 서비스 함수 구현

구현 내용

API 엔드포인트

함수 메서드 엔드포인트
dailyService.getWords GET /vocab/daily/{userId}
dailyService.markLearned POST /vocab/daily/{userId}/words/{wordId}/learned

구현 예시

export const dailyService = {
  getWords: (userId) =>
    vocabApi.get(`/vocab/daily/${userId}`),
  
  markLearned: (userId, wordId, isCorrect) =>
    vocabApi.post(`/vocab/daily/${userId}/words/${wordId}/learned`, { isCorrect }),
}

완료 조건

  • dailyService 객체 구현
  • 2개 API 함수 구현

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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