<aside>
POST /auth/login
body : {
"username": "[email protected]",
"password": "secret123"
}
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzIiwicm9sZSI6IlJPTEVfVVNFUiIsImlhdCI6MTc0NTU2MjY5NCwiZXhwIjoxNzQ1NTY2Mjk0fQ.pl2v3fSei337V5DFJO3a_ZayXLPVwf2NKv0nrkoZ5MM",
"refreshToken": "941a2e19-89ce-4399-abe1-625c0d2ae3e2",
"user": {
"id": 3,
"nickname": "@gil1_1dod11fng2",
"img": "<https://ex1ample.com/profilfe.jpg>",
"followers": 10,
"followings": 15,
"content": "",
"name": "",
"rate": ,
"boardCount": ,
"isStory": true
},
"firstLogin": false
}
</aside>
<aside>
POST /auth/oauth-login
body : {
"attributes": {
"attributes": "",
"nameAttributeKey": "",
"username": "",
"name": "",
"email": "",
"img": "",
"phone": ""
},
"provider": "google"
}
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzIiwicm9sZSI6IlJPTEVfVVNFUiIsImlhdCI6MTc0NTU2MjY5NCwiZXhwIjoxNzQ1NTY2Mjk0fQ.pl2v3fSei337V5DFJO3a_ZayXLPVwf2NKv0nrkoZ5MM",
"refreshToken": "941a2e19-89ce-4399-abe1-625c0d2ae3e2",
"user": {
"id": 3,
"nickname": "@gil1_1dod11fng2",
"img": "<https://ex1ample.com/profilfe.jpg>",
"followers": 10,
"followings": 15,
"content": "",
"name": "",
"rate": ,
"boardCount": ,
"isStory": true
},
"firstLogin": false
}
</aside>
<aside>
POST /auth/sign-up
body : {
"username": "[email protected]",
"password": "newpass",
"name": "",
"nickname": "newbie",
"img": "",
"phone": "01012345678"
}
{
"회원가입 성공!"
}
</aside>
<aside>
POST /auth/check-username
Content-Type: application/json
{
"username": "test123"
}
"사용 가능한 아이디입니다!"
</aside>
<aside>
POST /auth/check-nickname
Content-Type: application/json
{
"nickname": "knk_0611"
}
"사용 가능한 닉네임입니다!"
</aside>
<aside>
POST /user/social-info
Content-Type: application/json
Authorization: Bearer {JWT_ACCESS_TOKEN}
{
"nickname": "닉네임",
"phone": "01012345678",
}
{
"추가 정보 입력 완료!"
}
</aside>
<aside>
GET /auth/me
{
"id": 6,
"nickname": "@gil12_13dbhwsod111f1ng2",
"img": "<https://s3.ap-northeast-2.amazonaws.com/glim-bucket/https://ex1ample.com/profilfe.jpg_128x128.webp>",
"followers": 0,
"followings": 0,
"content": "",
"name": "홍길동",
"rate": 0,
"boardCount": 1,
"isStory": false
}
</aside>
<aside>
GET /auth/{id}
Authorization: Bearer {accessToken}
{
"id": 2,
"nickname": "knk_062",
"img": "<https://example.com/profile2.jpg>",
"followers": 0,
"followings": 0,
"content": "한 줄 소개입니다.",
"name": "테스트2",
"rate": 1,
"boardCount": 1,
"isStory": false,
"isMine": false,
"isFollowing": false
}
</aside>
<aside>
GET /auth/update
Authorization: Bearer {accessToken}
{
"nickname": "knk_0611",
"img": "<https://s3.ap-northeast-2.amazonaws.com/bucket/userimages/abc.jpg?size=128>",
"semiImg": "userimages/abc.jpg",
"name": "홍길동",
"content": "백엔드 개발자 🐣"
}
</aside>