将json发送到v4.0.0/book/flights/seatmap时出错?mode=seatmap
当我向seatmap发送测试json时,我得到了一个错误。API资源管理器也返回一个500错误 方法:邮寄 网址: 我正在传递一个有效的承载令牌,并将内容类型设置为application/json 以下是我发布的JSON:将json发送到v4.0.0/book/flights/seatmap时出错?mode=seatmap,json,spring,api,sabre,Json,Spring,Api,Sabre,当我向seatmap发送测试json时,我得到了一个错误。API资源管理器也返回一个500错误 方法:邮寄 网址: 我正在传递一个有效的承载令牌,并将内容类型设置为application/json 以下是我发布的JSON: { "EnhancedSeatMapRQ": { "SeatMapQueryEnhanced": { "RequestType": "Payload", "Flight": { "destination": "SAN",
{
"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"
}
只有当我没有在身体里发送任何东西时,当我添加有效负载时,我才得到了成功的响应(下面是我使用Postman测试的屏幕截图)