1. 로그인 API (/auth/login)

Method & URL

메서드 URL
POST /api/auth/login

Request Header

항목 필수 설명
Content-Type application/json

Request Elements

필드 타입 필수 설명
email String 사용자 이메일
password String 사용자 비밀번호

Request 예시

{
  "email": "hong@example.com",
  "password": "secure1234"
}

Response Elements

필드 타입 설명
userId Integer 사용자 ID
name String 사용자 이름
role String 사용자 역할
accessToken String JWT 토큰

Response 예

{
  "userId": 1,
  "name": "홍길동",
  "role": "customer",
  "accessToken": "eyJhbGciOiJIUzI1NiIs..."
}