-
Notifications
You must be signed in to change notification settings - Fork 0
API 명세
Seungwook edited this page Apr 4, 2024
·
11 revisions
POST /api/v1/users/{userId}/token
{
"token" : "qwekjsdopfijsdfpaos..."
}
GET /api/v1/concerts/{concertId}/shows
Authorization: Bearer <token>
[
{
"showId" : "1",
"date" : "2024-04-10"
},
{
"showId" : "2",
"date" : "2024-04-14"
}
]
GET /api/v1/shows/{showId}/seats
Authorization: Bearer <token>
[
{
"seatId" : "1",
"seatNumber" : "10"
},
{
"seatId" : "2",
"seatNumber" : "15"
},
{
"seatId" : "3",
"seatNumber" : "47"
}
]
POST /api/v1/shows/{showId}/seats/{seatId}
Authorization: Bearer <token>
{
"200 OK"
}
GET /api/v1/users/{userId}/balance
{
"amount" : "10000"
}
POST /api/v1/users/{userId}/balance
{
"userId" : "1",
"amount" : "10000"
}
{
"200 OK"
}
POST /api/v1/users/{userId}/payments
Authorization: Bearer <token>
{
"concertId" : "1",
"seatId" : "1"
}
{
"200 OK"
}