To override the Content-type in your clients 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 /json/reply/ContestPointsAgentRequest HTTP/1.1
Host: api2.exactmedicare.com
Content-Type: application/json
Content-Length: length
{"WeekNumber":0,"ContestPointsAgent":{"Id":0,"AgentId":0,"WeekNumber":0,"Item_1_1":0,"Item_1_2":0,"Item_2_1":0,"Item_2_2":0,"Item_2_3":0,"Item_2_4":0,"Item_2_5":0,"Item_2_6":0,"Item_2_7":0,"Item_3_1":0,"Item_3_2":0,"Item_4_1":0,"Item_4_2":0,"Item_4_3":0,"Item_4_4":0,"Item_4_5":0,"Item_4_6":0,"Item_4_7":0,"Item_5_1":0,"Item_5_2":0,"Item_5_3":0,"Item_5_4":0,"Item_5_5":0,"Item_5_6":0,"Item_5_8":0,"Item_5_9":0,"Item_5_10":0,"Item_5_11":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"ContestPointsAgent":{"Id":0,"AgentId":0,"WeekNumber":0,"Item_1_1":0,"Item_1_2":0,"Item_2_1":0,"Item_2_2":0,"Item_2_3":0,"Item_2_4":0,"Item_2_5":0,"Item_2_6":0,"Item_2_7":0,"Item_3_1":0,"Item_3_2":0,"Item_4_1":0,"Item_4_2":0,"Item_4_3":0,"Item_4_4":0,"Item_4_5":0,"Item_4_6":0,"Item_4_7":0,"Item_5_1":0,"Item_5_2":0,"Item_5_3":0,"Item_5_4":0,"Item_5_5":0,"Item_5_6":0,"Item_5_8":0,"Item_5_9":0,"Item_5_10":0,"Item_5_11":0}}