회원가입과 로그인을 제외한 모든 요청은 토큰이 있어야 함

Auth

EndPoint Method Description
/api/v1/auth/sign-up Post 회원가입
/api/v1/auth/sign-in Post 로그인
/api/v1/auth/test X Token 관련 테스트 API (사용 x)

/api/v1/auth/sign-up

Request

curl --location '<http://localhost:8080/api/v1/auth/sign-up>' \\
--header 'Content-Type: application/json' \\
--data-raw '{
    "email": "[email protected]"
}'

Response

{
    "success": true,
    "response": {
        "id": 6,
        "uuid": "7c58cbbb-f655-4138-bd95-f3dd2bc55ece"
    }
}

/api/v1/auth/sign-in

Request

curl --location '<http://localhost:8080/api/v1/auth/sign-in>' \\
--header 'Content-Type: application/json' \\
--data '{
    "uuid": "7c58cbbb-f655-4138-bd95-f3dd2bc55ece"
}'

Response

{
    "success": true,
    "response": {
        "accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0dGVzdEB0ZXN0LmNvbSIsInJvbGVzIjpbIlJPTEVfVVNFUiJdLCJpYXQiOjE3MTQ2Mjk3MDksImV4cCI6MTcxNDYzMTUwOX0.4Ff5TtgB6YRY_qYvCOL-DHNTOVX3NX7Xx4E4BZzR-G0",
        "expiresAt": "2024-05-02T06:31:49"
    }
}

Member

EndPoint Method Description
/api/v1/members Get 회원 정보 조회(이메일, 목표 점수)
/api/v1/members Patch 목표 점수 수정
/api/v1/members/
weekly-percent-correct Get 주간 정답률 조회
해당 날에 문제를 풀지 않았을 경우 정답률은 0

/api/v1/members

Request