MongoLab API Example
• POST
!
URL: https://mongolab.com/api/1/databases/demo/collections/geoposts!
!
Data: { “email” : “
[email protected]”,!
! “date” : { “$date” : “2010-12-03 11:18:21 UTC” },!
“location” : { “lat” : 37.41, “long” : -122.05 },!
! “message” : “Hello Seattle!” }!
!
• GET
URL: https://…/geoposts?q={"location":{"$near":{"lat":37,"long":-122}}}
!