Skip to content

Records

William Calderipe edited this page Jun 29, 2016 · 1 revision

Reports

Schema

{
    geolocation: {
      type: [Number],
      index: '2d'
    },
    category: String,
    date: Date,
    createdAt: {
      type: Date,
      default: Date.now
    }
}

Endpoints

GET /reports/:lat,:long

Get reports from an specific point.

Optional querystring parameters.

Parameter Description
radius Get all reports inside a radius where the center point is the latitude and longitude specified.
group TODO

POST /reports

Create a new report.

Clone this wiki locally