To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /api/products/history HTTP/1.1
Host: api.pos365.vn
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ProductId":0,"BranchId":0,"$orderby":"String","$select":"String","$filter":"String","$skip":0,"$top":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"__count":0,"filter":{},"Timestamp":"2025-05-04T22:17:20.0376919Z","CustomVaule1":{},"CustomVaule2":{},"CustomVaule3":{}}