AlertSense Map Service

<back to all web services

ValidateRequest

The following routes are available for this service:
POST/api/configuration/validate
ValidateRequest Parameters:
NameParameterData TypeRequiredDescription
SchemabodystringNo
JsonbodystringNo
ValidateResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorsbodyIList<ValidationError>No
ValidbodyboolNo
ValidationError Parameters:
NameParameterData TypeRequiredDescription
MessagebodystringNo
LineNumberbodyintNo
LinePositionbodyintNo
PathbodystringNo
ValuebodyObjectNo
SchemabodyJSchemaNo
SchemaIdbodyUriNo
SchemaBaseUribodyUriNo
ErrorTypebodyErrorTypeNo
ChildErrorsbodyIList<ValidationError>No

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/ValidateRequest HTTP/1.1 
Host: elm.alertsense.com 
Content-Type: text/jsv
Content-Length: length

{
	Schema: String,
	Json: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Valid: False
}