일정 조회
메소드 |
경로 |
설명 |
GET |
/schedules?scheduleIdx={scheduleIdx} |
일정 조회 |
요청 헤더
{
"Content-Type": "application/json"
}
응답 성공
{
"status": 200,
"message": "일정 조회 성공",
"data": {
"scheduleInfo": {
"scheduleIdx": 1,
"scheduleName": "강남 to 논현 버스 360번",
"scheduleStartTime": "2020-10-15 22:30:00",
"departTime": "2020-10-15 22:15:00",
"startAddress": "강남역",
"startLatitude": 37.618459513199,
"startLongitude": 127.075405300578,
"nextAddress": "지하철2호선강남역",
"endAddress": "논현역",
"endLongitude": 127.028000275071,
"endLatitude": 37.4980854357918,
"noticeRange": 60,
"noticeMin": 5,
"fk_userIdx": 1
},
"weekdayInfo": [
0,
1
],
"noticeTime": [],
"path": {
"pathIdx": 1,
"pathType": 2,
"totalTime": 15,
"totalPay": 1200,
"totalWalkTime": 5,
"transitCount": 0,
"firstStationName": null,
"subPath": [
{
"detailIdx": 1,
"trafficType": 3,
"distance": 158,
"sectionTime": 2,
"stationCount": null,
"subwayName": null,
"subwayLane": null,
"door": null,
"way": null,
"wayCode": null,
"startName": null,
"startX": null,
"startY": null,
"endName": null,
"endX": null,
"endY": null,
"busNo": null,
"busType": null,
"busStId": null,
"busOrd": null,
"busRouteId": null,
"busTerm": null,
"busID": null,
"startExitNo": null,
"startExitX": null,
"startExitY": null,
"endExitNo": null,
"endExitX": null,
"endExitY": null,
"fk_pathIdx": 1
},
{
"detailIdx": 2,
"trafficType": 2,
"distance": 1891,
"sectionTime": 10,
"stationCount": 3,
"subwayName": null,
"subwayLane": null,
"door": null,
"way": null,
"wayCode": null,
"startName": "강남역12번출구",
"startX": 127.029553,
"startY": 37.498794,
"endName": "논현사거리.논현역5번출구",
"endX": 127.019344,
"endY": 37.510631,
"busStId": 122000181,
"busOrd": 23,
"busRouteId": 100100057,
"busTerm": 5,
"startExitNo": null,
"startExitX": null,
"startExitY": null,
"endExitNo": null,
"endExitX": null,
"endExitY": null,
"fk_pathIdx": 1,
"lane": {
"name": "360",
"type": 11,
"busID": 1440
},
"passStopList": [
"강남역12번출구",
"지하철2호선강남역",
"논현역",
"논현사거리.논현역5번출구"
]
},
{
"detailIdx": 3,
"trafficType": 3,
"distance": 214,
"sectionTime": 3,
"stationCount": null,
"subwayName": null,
"subwayLane": null,
"door": null,
"way": null,
"wayCode": null,
"startName": null,
"startX": null,
"startY": null,
"endName": null,
"endX": null,
"endY": null,
"busNo": null,
"busType": null,
"busStId": null,
"busOrd": null,
"busRouteId": null,
"busTerm": null,
"busID": null,
"startExitNo": null,
"startExitX": null,
"startExitY": null,
"endExitNo": null,
"endExitX": null,
"endExitY": null,
"fk_pathIdx": 1
}
]
}
}
}
#### 응답 실패
```json
{
"status": 400,
"message": "입력되지 않은 값이 있습니다"
}
{
"status": 400,
"message": "scheduleIdx에 해당하는 값이 유효하지 않습니다. scheduleIdx값을 확인해주세요."
}
{
"status": 400,
"message": "INTERNAL_SERVER_ERROR"
}