Skip to content

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
    

๐ŸŽฏ ๊ณ„ํš


๐Ÿค ๊ทœ์น™


๐Ÿ‘ฉโ€๐ŸŽจ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ


๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ ๋ฉ˜ํ† ๋‹˜๊ณผ์˜ ๋งŒ๋‚จ


๐Ÿ“œ ํ† ๋ก ๊ฑฐ๋ฆฌ


๐Ÿ“œ ๊ฐœ๋ฐœ ๋ฌธ์„œ


๐Ÿ’Ž ๊ธฐ์ˆ  ํŠน์žฅ์ 


๐Ÿƒโ€โ™‚๏ธ ์Šคํ”„๋ฆฐํŠธ ํšŒ์˜ / ํšŒ๊ณ 


๐Ÿ‰ ๋ฐ์ผ๋ฆฌ ์Šคํฌ๋Ÿผ


Clone this wiki locally