Login RestAPIs

henry·2021년 7월 11일
0

Auth

User Schema


{
  id: string // 사용자의 고유한 아이디 
  name: string,  // 사용자 닉네임
  password: string,  // 사용자 비밀번호
  email: string,  // 사용자 이메일 
}

POST/auth/signup

Reqeust

{ 
  name,
  password,
  email, 
}

Response

{
	token,
	username
}

POST/auth/login

Reqeust

{
	name,
	password
}

Response

{
	token,
	username
}

GET /auth/me

{
	token,
	username
}

0개의 댓글