To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /SamsungOMSReqAvaiStock HTTP/1.1
Host: snr2u.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
available_req:
{
common_header:
{
message_id: String,
send_system: String,
send_date: String,
send_time: String,
in_company: String,
send_code: String
},
available_req_header:
{
confirm_flag: String,
online_store_id: String,
po_no: String
},
available_req_items:
{
available_req_item:
[
{
plant: String,
storage_location: String,
model_code: String,
request_quantity: String
}
]
}
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
available_res:
{
available_res_header:
{
result_message: String,
reservation_no: String,
result_code: String
},
available_res_items:
{
available_res_item:
[
{
plant: String,
storage_location: String,
model_code: String,
request_quantity: String
}
]
}
},
IsSuccess: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}