当我将测试json发送到座位图时,我收到错误消息。 API资源管理器也返回500错误。
方法:POST 网址:https://api-crt.cert.havail.sabre.com/v4.0.0/book/flights/seatmaps?mode=seatmaps
我正在传递有效的Bearer令牌并将content-type设置为application / json
以下JSON是我发布的内容:
{
"EnhancedSeatMapRQ": {
"SeatMapQueryEnhanced": {
"RequestType": "Payload",
"Flight": {
"destination": "SAN",
"origin": "ATL",
"DepartureDate": {
"content": "2017-10-23"
},
"ArrivalDate": {
"content": "2017-10-23"
},
"Operating": {
"carrier": "DL",
"content": "1692"
},
"Marketing": [
{
"carrier": "DL",
"content": "1692"
}
]
},
"CabinDefinition": {
"RBD": "Y"
}
}
}
}
我从API收到以下错误:
{
"status": "NotProcessed",
"reportingSystem": "RAF",
"timeStamp": "2017-07-19T12:27:54+00:00",
"type": "Validation",
"errorCode": "ERR.RAF.VALIDATION",
"instance": "raf-darhlc005-9080",
"message": "Required request body is missing: public org.springframework.http.ResponseEntity com.sabre.rest.facade.controller.j2x.RestToSoapController.postRestToSoap(java.lang.String,javax.servlet.http.HttpServletRequest,boolean) throws java.lang.Throwable"
}