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.
POST /RPS/Table HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length
{"Table":{"TableId":0,"TableNum":0,"Name":"String","NameEn":"String","Type":0,"Status":0,"Capacity":0,"Length":0,"Width":0,"TiltAngle":0,"CordX":0,"CordY":0,"HallId":0,"Spend":false}}
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":0}