Skip to content

API 명세

Seungwook edited this page Apr 4, 2024 · 11 revisions

유저 대기열 토큰 발급 API

Path

POST /api/v1/users/{userId}/token

Response

{
  "token" : "qwekjsdopfijsdfpaos..."
}

예약 가능 날짜 조회 API

Path

GET /api/v1/concerts/{concertId}/shows

Header

Authorization: Bearer <token>

Response

[
  {
    "showId" : "1",
    "date" : "2024-04-10"
  },
  {
    "showId" : "2",
    "date" : "2024-04-14"
  }
]

예약 가능한 좌석 조회 API

path

GET /api/v1/shows/{showId}/seats

Headers

Authorization: Bearer <token>

response

[
  {
    "seatId" : "1",
    "seatNumber" : "10"
  },
  {
    "seatId" : "2",
    "seatNumber" : "15"
  },
  {
    "seatId" : "3",
    "seatNumber" : "47"
  }
]

좌석 예약 API

Path

POST /api/v1/shows/{showId}/seats/{seatId}

Headers

Authorization: Bearer <token>

Respone

{
  "200 OK"
}

잔액 조회 API

Path

GET /api/v1/users/{userId}/balance

Respone

{
  "amount" : "10000"
}

잔액 충전 API

Path

POST /api/v1/users/{userId}/balance

Request

{
  "userId" : "1",
  "amount" : "10000"
}

Respone

{
  "200 OK"
}

결제 API

Path

POST /api/v1/users/{userId}/payments

Headers

Authorization: Bearer <token>

Request

{
  "concertId" : "1",
  "seatId" : "1"
}

Respone

{
  "200 OK"
}