Tickets
사용자 티켓 목록 조회
Request
GET /tickets HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer {JWT}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": {
"items": [
{
"id": 1,
"title": "킹키부츠",
"ticketStatus": "BOOKED",
"createdAt": "2024.10.01(화) 12:00",
"validUntil": "2024.10.17(목) 10:00",
"cancelUntil": "2024.10.10(목) 10:00",
"place": "서울 아트센터",
"scheduleDate": "2024.10.17(목)",
"startTime": "10:00",
"posterImageUrl": "https://.../PosterImg1.png",
"grade": "R",
"seatNo": 1
},
{
"id": 2,
"title": "레드북",
"ticketStatus": "BOOKED",
"createdAt": "2024.10.02(수) 14:00",
"validUntil": "2024.10.22(화) 12:00",
"cancelUntil": "2024.10.15(화) 12:00",
"place": "대구 문화회관",
"scheduleDate": "2024.10.22(화)",
"startTime": "12:00",
"posterImageUrl": "https://.../PosterImg2.png",
"grade": "S",
"seatNo": 101
}
],
"nextCursor": null
},
"resultCode": 200,
"resultMsg": "OK"
}
티켓 생성
Request
POST /tickets HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer {JWT}
{
"seatId": [1],
"deviceId": "device123"
}
Response
HTTP/1.1 201 Created
Content-Type: application/json
{
"result": [
{
"id": 3,
"ticketStatus": "BOOKED",
"createdAt": "2024-10-03T10:00:00",
"validUntil": "2024-10-17T10:00:00",
"cancelUntil": "2024-10-10T10:00:00",
"deviceId": "device123"
}
],
"resultCode": 201,
"resultMsg": "Created"
}