-
Notifications
You must be signed in to change notification settings - Fork 6
User API
Sooyeon Park edited this page Dec 8, 2020
·
7 revisions
{
"Authorization": "Bearer " + Access Token,
"Content-Type": "application/json",
"Accept": "application/json"
}
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 500 ์๋ฒ ์๋ฌ - url
GET /api/oauth/login/apple GET /api/oauth/login/naver
- request
none
- response
- redirect to apple or naver
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 500 ์๋ฒ ์๋ฌ - url
GET /api/oauth/callback/apple GET /api/oauth/callback/naver
- request
none
- response
{ "token": }
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
GET /api/user/me
- request
none
- response
{ "id": Number, "name": String, "profileImageUrl": String }
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
GET /api/user?username=String
- request
none
- response
{ "id": Number, "name": String, "profileImageUrl": String }
- ์ํ ์ฝ๋
status code ์ค๋ช 204 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
DELETE /api/user/me
- request
none
- response
none
๐ฉ๐ปโ๐ป ๋ฐ์์ฐ | ๐ง๐ปโ๐ป ์ ๋ํ | ๐ง๐ปโ๐ป ์ด๊ฑดํ | ๐ง๐ปโ๐ป ์๋ช ๋ ฌ | ๐ง๐ปโ๐ป ์ฌ์๋ฏผ |
---|---|---|---|---|
@Park-SooYeon | @dh00n | @youngxpepp | @fElix-MR | @tksrl0379 |