- Install Visual Studio 2013 Community (free)
- Clone / Fork repo
- Create fifi.mdf in App_Data
- Run Create.sql script to build db schema
- Run build
http://squeakycitizen.azurewebsites.net/api/report/categories
http://squeakycitizen.azurewebsites.net/api/report/interaction
return array of reported interaction objects
http://squeakycitizen.azurewebsites.net/api/report/interaction/1
Return:
{ "Id": 1, "Location": { "Lat": 45.71211242675781, "Long": -121.5271987915039, "Cross_Street": "301 15th Street, Hood River", "Narrative": "test" }, "Mode": "Bike", "Description": "Doored on 2nd n seneca", "Incident_Time": "2015-03-20T00:00:00", "Image": null, "Infrastructure": false, "Collision": false, "PropertyDamage": false, "Injury": false, "Modes": { "Personal": "Bike", "Other": null } }
http://squeakycitizen.azurewebsites.net/api/report/interaction/
Sample Post Json
{
"Location": {
"Lat": 45.71211242675781,
"Long": -121.5271987915039,
"Cross_Street": "301 15th Street, Hood River",
"Narrative": "test"
},
"Mode": "Bike",
"Description": "Doored on 2nd n seneca",
"Incident_Time": "2015-03-20T00:00:00",
"Image": null,
"Infrastructure": false,
"Collision": false,
"PropertyDamage": false,
"Injury": false,
"Modes": {
"Personal": "Bike",
"Other": []
}
}
Return:
{
"Id": 3,
"Location": {
"Lat": 45.71211242675781,
"Long": -121.5271987915039,
"Cross_Street": "301 15th Street, Hood River",
"Narrative": "test"
},
"Mode": "Bike",
"Description": "Doored on 2nd n seneca",
"Incident_Time": "2015-03-20T00:00:00",
"Image": null,
"Infrastructure": false,
"Collision": false,
"PropertyDamage": false,
"Injury": false,
"Modes": {
"Personal": "Bike",
"Other": null
}
}
http://squeakycitizen.azurewebsites.net/api/report/UploadImage/{id}
form-data key = image
http://squeakycitizen.azurewebsites.net/map/
Show all reports