Spring | AWS_EC2 | MySQL |
---|---|---|
member_id (PK) (BIGINT) (AUTO_INCREMENT)
uid (VARCHAR(255))
email (VARCHAR(255))
nickname (VARCHAR(255))
reliable_uid (VARCHAR(255))
child_age (INT)
test_id (PK) (INT) (AUTO_INCREMENT)
hallucination (INT)
abnormal_behavior (INT)
moody (INT)
delusion (INT)
total (INT)
date (DATE)
member_id (BIGINT) (FK)
로그인 : api/member/login (POST)
- Request body
- Response body
{
"email": "string",
"uid": "string"
}
{
"token": "string",
"exprTime": 0,
"first": true
}
회원가입 : api/member/first (POST)
- Request body
- Response body
{
"nickname": "string",
"childAge": 0,
"uid": "string"
}
string(token 값)
업데이트 : api/member/update (POST)
- Request header
- Request body
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
{
"nickname": "string",
"reliableName": "string",
"childAge": 0
}
"업데이트 성공"
회원 조회 : api/member (GET)
- Request header
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
{
"uid": "string",
"email": "string",
"nickname": "string",
"reliableName": "string",
"childAge": 0,
"test": [
{
"testId": 0,
"hallucination": 0,
"abnormalBehavior": 0,
"moody": 0,
"delusion": 0,
"total": 0,
"date": "2024-02-16"
}
]
}
남의 정보 조회 : api/member/reliable (GET)
- Request header
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
{
"uid": "string",
"email": "string",
"nickname": "string",
"reliableName": "string",
"childAge": 0,
"test": [
{
"testId": 0,
"hallucination": 0,
"abnormalBehavior": 0,
"moody": 0,
"delusion": 0,
"total": 0,
"date": "2024-02-16"
}
]
}
닉네임 중복확인 : api/member/duplicate (GET)
- RequestParam
- Response body
?name="string
boolean
멤버 삭제 : api/member/delete (DELETE)
- Request header
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
"삭제 되었습니다."
TEST(로그인 후) : api/test (POST)
- Request Header
- Request Body
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
{
"question1": 0,
"question2": 0,
"question3": 0,
"question4": 0,
"question5": 0,
"question6": 0,
"question7": 0,
"question8": 0,
"question9": 0,
"question10": 0,
"question11": 0,
"question12": 0
}
{
"testId": 0,
"hallucination": 0,
"abnormalBehavior": 0,
"moody": 0,
"delusion": 0,
"total": 0,
"date": "2024-02-16"
}
TEST(로그인 전)(DB에 저장안됨): api/test/first(POST)
- Request Body
- Response Body
{
"question1": 0,
"question2": 0,
"question3": 0,
"question4": 0,
"question5": 0,
"question6": 0,
"question7": 0,
"question8": 0,
"question9": 0,
"question10": 0,
"question11": 0,
"question12": 0
}
{
"hallucination": 0,
"abnormalBehavior": 0,
"moody": 0,
"delusion": 0,
"total": 0
}
오늘 테스트 했는지 안 했는지 확인 :api/test/exist-today (GET)
- Request Header
- Response body
{
"Authorization": "String",
"Content-Type": "application/json"
}
boolean