Closed ahn-sj closed 1 year ago
정상 응답인 경우는 기존에 하던대로 하되, 예외 응답인 경우라면 data와 message를 전달한다.
{"data": null, "message":"Exception Message"}
API 명세는 Issue에 적되 정상 Case, 실패 Case에 대한 짧은 코멘트 달기
/cround/health
- 서버 상태 테스트 API, 권한 필요 X{
"status": "UP"
}
/cround/auth
- 권한 인증 테스트 API, 권한 필요
{
"role": "[USER]"
}
/api/members
- 일반 회원가입
/auth/login
- 일반 로그인
// request
{
"email": "cround@cround.com",
"password": "cround"
}
// response
200
{
"accessToken": "Bearer xxx",
"refreshToken": "Bearer xxx"
}
/oauth2/{provider}
- 카카오 로그인
Ex) /oauth2/kakao?code={AUTHORIZATION_CODE}
// response
200
{
"accessToken": "Bearer xxx",
"refreshToken": "Bearer xxx"
}