AbodeONE

<back to all web services

FindIncidents

Requires Authentication
Required role:Admin
The following routes are available for this service:
GET/incidents
FindIncidents Parameters:
NameParameterData TypeRequiredDescription
TermIdqueryint?No
BuildingIdsqueryIEnumerable<int>No
FindIncidentsResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformIEnumerable<IncidentDTO>No
ResponseStatusformResponseStatusNo
IncidentDTO Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
IncidentTypeIdformintNo
BuildingIdformintNo
ReportedDtformDateTimeNo
OccuredDtformDateTimeNo
IncidentTitleformstringNo
DetailsformstringNo
LocationformstringNo
InterventionformstringNo
FollowupformstringNo
ReporterformstringNo
ReportedToformstringNo
RASignedformstringNo
Tracked Parameters:
NameParameterData TypeRequiredDescription
CreatedDtformDateTimeNo
CreatedByformstringNo
ModifiedDtformDateTime?No
ModifiedByformstringNo

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.

GET //incidents HTTP/1.1 
Host: api.lsu.abodehms.com 
Accept: application/json
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","meta":{"String":"String"}}],"meta":{"String":"String"}}}