To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/R_CellularServiceLogEntry HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: text/jsv
Content-Length: length
{
RtuId: 0,
CellularActionTypeId: 0,
PreviousStateId: 0,
CurrentStateId: 0,
PreviousMdn: String,
CurrentMdn: String,
Success: False,
Message: String,
TrackingNumber: String,
EntryDateTime: 0001-01-01,
Id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
RtuId: 0,
CellularActionTypeId: 0,
PreviousStateId: 0,
CurrentStateId: 0,
PreviousMdn: String,
CurrentMdn: String,
Success: False,
Message: String,
TrackingNumber: String,
EntryDateTime: 0001-01-01,
Id: 0
}