이메일 확인 API - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Email check API
Request
Method
GET
URL
/api/auth/check
Query Parameters
name |
value |
Description |
email |
String |
가입하고자 하는 이메일 |
URL example
http://localhost:8080/api/auth/[email protected]
Response
Header
Method |
Parameter |
Description |
statusCode |
{statusCode} |
|
Body
Field |
Type |
Description |
status |
int |
상태코드 |
message |
String |
status 메시지 |
data |
Boolean |
유효하면 true, 유효하지 않으면 false |
SUCCESS example
{
"status": 200,
"message": "유효한 이메일입니다.",
"data": true
}
Error Code
HttpStatus |
status |
Error Messsage |
200 |
409 |
DUPLICATE_EMAIL |
500 |
500 |
Server Error |
FAIL example
{
"status": 409,
"message": "이미 가입된 이메일입니다.",
"data": false
}
{
"timestamp": "2022-02-03T11:33:41.5330191",
"status": 500,
"error": "SERVER_ERROR",
"code": "INTERNAL_SERVER_ERROR",
"message": "서버 오류입니다."
}