FrameAppWS

<back to all web services

GetCitizenReportsByCitizenRQ

Requires Authentication
The following routes are available for this service:
All Verbs/citizen/getReportByCitizen
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetCitizenReportsByCitizenRQ
{
    var Email:String? = null
}

open class GetCitizenReportsByCitizenRS : CoreRS()
{
    var Data:ArrayList<CitizenReport> = ArrayList<CitizenReport>()
}

open class CoreRS
{
    var Code:String? = null
    var ErrorMessage:String? = null
    var ErrorStackTrace:String? = null
}

open class CitizenReport
{
    var ReportId:Long? = null
    var CitizenId:Long? = null
    var Email:String? = null
    var ReportType:Long? = null
    var ReportDesc:String? = null
    var Status:Long? = null
    var StatusDesc:String? = null
    var Report:String? = null
    var Fields:HashMap<String,Object> = HashMap<String,Object>()
    var Longitude:Double? = null
    var Latitude:Double? = null
    var InvolvedinIndicent:Int? = null
    var CreatedDate:Date? = null
    var CreatedDateDesc:String? = null
    var Follow:ArrayList<HashMap<String,Object>> = ArrayList<HashMap<String,Object>>()
    var Files:ArrayList<String> = ArrayList<String>()
}

Kotlin GetCitizenReportsByCitizenRQ DTOs

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/getReportByCitizen HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Email":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Data":[{"ReportId":0,"CitizenId":0,"Email":"String","ReportType":0,"ReportDesc":"String","Status":0,"StatusDesc":"String","Report":"String","Fields":{"String":{}},"Longitude":0,"Latitude":0,"InvolvedinIndicent":0,"CreatedDate":"0001-01-01T00:00:00.0000000","CreatedDateDesc":"String","Follow":[{"String":{}}],"Files":["String"]}],"Code":"String","ErrorMessage":"String","ErrorStackTrace":"String"}