Skip to content

User API

Zin0_0 edited this page Nov 30, 2020 · 4 revisions

User

Method url description
GET api/user/oauth/naver naver ์•„์ด๋””๋กœ ๋กœ๊ทธ์ธ
GET api/user/me ์‚ฌ์šฉ ์ค‘์ธ user์˜ ์ •๋ณด ํ™•์ธ

User GET API (naver ์•„์ด๋””๋กœ ๋กœ๊ทธ์ธ)

URL

GET /api/user/oauth/

redirect URL์˜ query๊ฐ’์œผ๋กœ token์ด ๋„˜์–ด์˜จ๋‹ค.

Response Description

Name Type Description
token QUERY_STRING jwt token string

User GET API (์‚ฌ์šฉ์ค‘์ธ user์˜ ์ •๋ณด ํ™•์ธ)

URL

GET /api/user/me

Response Description

Name Type Description
name STRING ์‚ฌ์šฉ์ž ์ด๋ฆ„ ๋˜๋Š” ๋‹‰๋„ค์ž„
email STRING ์‚ฌ์šฉ์ž ์ด๋ฉ”์ผ ์ฃผ์†Œ

Response

{
    id: 1,
    name: "tony",
    email: "aaa@aaa",
}
Clone this wiki locally