FrameAppWS

<back to all web services

GetCitizenIncidentsRQ

The following routes are available for this service:
All Verbs/citizen/getcitizenincidents/{Category}
GetCitizenIncidentsRQ Parameters:
NameParameterData TypeRequiredDescription
CategorypathstringNo
InitDatequeryDateTimeNo
EndDatequeryDateTimeNo
StatusquerystringNo
WithAttachmentsqueryboolNo
GetCitizenIncidentsRS Parameters:
NameParameterData TypeRequiredDescription
CitizenIncidentsformList<CitizenIncidentFull>No
CoreRS Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
ErrorMessageformstringNo
ErrorStackTraceformstringNo
CitizenIncidentFull Parameters:
NameParameterData TypeRequiredDescription
ReportIdformlongNo
CitizenEmailformstringNo
CitizenNameformstringNo
CitizenPhoneNumberformstringNo
CitizenStatusformstringNo
ReportTypeIdformlongNo
ReportTypeformstringNo
ReportformstringNo
FieldsformDictionary<string, Object>No
LongitudeformdoubleNo
LatitudeformdoubleNo
InvolvedinIndicentformintNo
CreatedDateformstringNo
FilesformList<Dictionary<String,Object>>No
FollowformList<Dictionary<String,Object>>No
StatusformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /citizen/getcitizenincidents/{Category} HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Category":"String","InitDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Status":"String","WithAttachments":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"CitizenIncidents":[{"ReportId":0,"CitizenEmail":"String","CitizenName":"String","CitizenPhoneNumber":"String","CitizenStatus":"String","ReportTypeId":0,"ReportType":"String","Report":"String","Fields":{"String":{}},"Longitude":0,"Latitude":0,"InvolvedinIndicent":0,"CreatedDate":"String","Files":[{"String":{}}],"Follow":[{"String":{}}],"Status":"String"}],"Code":"String","ErrorMessage":"String","ErrorStackTrace":"String"}