cround-team / cround-server

크리에이터와 크리에이터를 꿈꾸는 사람들을 위한 커피챗 서비스
https://cround-client.vercel.app/
2 stars 1 forks source link

[BE] 응답 형식의 포맷을 지정한다. #4

Closed ahn-sj closed 1 year ago

ahn-sj commented 1 year ago
200
{
    id: int,
    nickname: "String"
    desc: "String"
}

400 
{
    message: "이미 존재하는 닉네임입니다."
}
ahn-sj commented 1 year ago

05.06 회의 결과

ahn-sj commented 1 year ago
  1. /cround/health - 서버 상태 테스트 API, 권한 필요 X
{
  "status": "UP"
}
  1. /cround/auth - 권한 인증 테스트 API, 권한 필요

    {
    "role": "[USER]"
    }
  2. /api/members - 일반 회원가입

  3. /auth/login - 일반 로그인

    // request
    {
    "email": "cround@cround.com",
    "password": "cround"
    }
    // response
    200
    {
    "accessToken": "Bearer  xxx",
    "refreshToken": "Bearer xxx"
    }
  4. /oauth2/{provider} - 카카오 로그인

Ex) /oauth2/kakao?code={AUTHORIZATION_CODE}

ahn-sj commented 1 year ago

75 가 추가됨에 따라 닫습니다