API 목록

POST: 구글 소셜 로그인

HTTP Request
POST /login/google HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 72
Host: localhost:8080

{
  "redirectUri" : "Redirect_Uri",
  "code" : "Authorization_Code"
}
Table 1. Request Fields
Path Type Description

redirectUri

String

리다이렉트 Uri

code

String

구글에서 발급받은 인가 코드

HTTP Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 57

{
  "memberId" : 3,
  "token" : "doore.access.token"
}
Table 2. Response Fields
Path Type Description

memberId

Number

로그인한 사용자의 id

token

String

Access Token