GET | /Competitions/ |
---|
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Competitions/ HTTP/1.1 Host: tstsrvs.redhotpie.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ { CompetitionID: 0, Prize: String, QuestionBlurb: String, Question: String, TermsCondition: String, StartDate: 0001-01-01, EndDate: 0001-01-01, IsNameRequired: False, IsEmailRequired: False, IsPhoneRequired: False, IsAddressRequired: False } ]