-
Notifications
You must be signed in to change notification settings - Fork 2
REST API Spec
ginogervasio edited this page Nov 14, 2013
·
1 revision
{
"lat": float
"lng": float
"name": string
"description": String
}
returns (RescueObject):
{
"id": int
"lat": float
"lng": float
"createdAt": Date with format "yyyy-MM-dd'T'HH:mm:ss'Z'"
"name": String
"description": String
"state": String // "open" or "closed"
}
{
"id": int or string
}
returns RescueObject with state = "closed"
params:
- since: Date with format
yyyy-MM-dd'T'HH:mm:ss'Z' - state:
open,closed,any
Example Curl
curl -X POST -H 'Content-Type: application/json' -d '{"name": "Sterling Archer", "lat": "14.601616", "lng": "121.042404", "description": "Help! I'm in a zone of danger."}'
returns Array of RescueObject