To override the Content-type in your clients, use the HTTP Accept Header, append the .x-protobuf suffix or ?format=x-protobuf
HTTP + X-PROTOBUF
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PUT /POS/UM/SaveBookPropEX HTTP/1.1
Host: 10.10.0.107
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length
{"BookPropEx":{"pos_id":0,"payment_type":0,"cashm_acc":"String","cash_oper_id":"String","payment_name":"String","OperName":"String","AccWithName":"String","cash_ret_acc":"String","cash_ret_oper_id":"String","RetOperName":"String","RetAccName":"String","cashback_oper_id":"String","cashback_db":"String","cashback_cr":"String"}}
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Result":false}