Show API 문서 - f-lab-edu/at_ticket GitHub Wiki
version 1.0.0-SNAPSHOT
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 311
{
"code" : 200,
"message" : "요청에 성공하셨습니다.",
"data" : {
"remainSeats" : [ {
"showId" : 1,
"gradeId" : 1,
"gradeNm" : "A",
"seatCnt" : 5
}, {
"showId" : 1,
"gradeId" : 2,
"gradeNm" : "B",
"seatCnt" : 3
} ]
}
}
POST /shows/product/1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Content-Length: 196
Host: localhost:8080
{
"shows" : [ {
"date" : "2023-05-05",
"time" : "10:00:00",
"session" : 1,
"hallId" : 1,
"seats" : [ {
"grade" : 1,
"ids" : [ 1, 2, 3 ]
} ]
} ]
}
Path | Type | Description |
---|---|---|
|
|
공연 날짜 |
|
|
공연 시간 |
|
|
공연 순번 |
|
|
공연장 ID |
|
|
공연 등급 ID |
|
|
좌석 ID |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 112
{
"code" : 200,
"message" : "요청에 성공하셨습니다.",
"data" : {
"showIds" : [ ]
}
}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 289
{
"code" : 200,
"message" : "요청에 성공하셨습니다.",
"data" : {
"seats" : [ {
"id" : 1,
"space" : "1층",
"locX" : "1",
"locY" : "1",
"row" : "1L",
"rowNum" : 0,
"grade" : "A",
"price" : 1000
} ]
}
}
Path | Type | Description |
---|---|---|
|
|
결과코드 |
|
|
결과 메세지 |
|
|
좌석 이름 |
|
|
영역 이름 |
|
|
x 좌표 |
|
|
y 좌표 |
|
|
좌석 행 |
|
|
좌석 열 |
|
|
좌석 등급 |
|
|
좌석 가격 |
POST /shows/1/seats/price HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Content-Length: 31
Host: localhost:8080
{
"seatIds" : [ 1, 2, 3 ]
}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 89
{
"code" : 200,
"message" : "요청에 성공하셨습니다.",
"data" : 1000
}
Version 1.0.0-SNAPSHOT
Last updated 2023-10-20 16:46:58 +0900