All Verbs | /citizen/getcitizenincidents/{Category} |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Category | path | string | No | |
InitDate | query | DateTime | No | |
EndDate | query | DateTime | No | |
Status | query | string | No | |
WithAttachments | query | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CitizenIncidents | form | List<CitizenIncidentFull> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Code | form | string | No | |
ErrorMessage | form | string | No | |
ErrorStackTrace | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ReportId | form | long | No | |
CitizenEmail | form | string | No | |
CitizenName | form | string | No | |
CitizenPhoneNumber | form | string | No | |
CitizenStatus | form | string | No | |
ReportTypeId | form | long | No | |
ReportType | form | string | No | |
Report | form | string | No | |
Fields | form | Dictionary<string, Object> | No | |
Longitude | form | double | No | |
Latitude | form | double | No | |
InvolvedinIndicent | form | int | No | |
CreatedDate | form | string | No | |
Files | form | List<Dictionary<String,Object>> | No | |
Follow | form | List<Dictionary<String,Object>> | No | |
Status | form | string | No |
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.
POST /citizen/getcitizenincidents/{Category} HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Category: String,
InitDate: 0001-01-01,
EndDate: 0001-01-01,
Status: String,
WithAttachments: False
}
HTTP/1.1 200 OK Content-Type: text/jsv 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 }