identify and monitor broken routes.
peabiru (pe way, abiru crumpled lawn) are ancient paths used by South American Indians long before the discovery by Europeans, linking the coast to the inland.
LGPL version 3, see LICENSE and source
users endpoint.
$ curl http://peabiru.dev/users.json -v
$ curl http://peabiru.dev/users/xxleite.json -v
with more information ...
$ curl http://peabiru.dev/users/xxleite.json \
-H "Cookie: peabiru=157e9991810db7" -v
authenticate using Oauth (twitter or osm) or Oauth2 (facebook, google or github):
$ curl -X POST http://peabiru.dev/login/osm.json
-H "Content-Type: application/json" -v
or
$ curl http://peabiru.dev/login/osm -v
$ curl -X PUT http://peabiru.dev/users/naoliv.json -d @user.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
$ curl -X DELETE http://peabiru.dev/logout.json \
-H "Cookie: peabiru=157e9991810db7" -v
$ curl -X DELETE http://peabiru.dev/users/skippern.json \
-H "Cookie: peabiru=157e9991810db7" -v
places endpoint.
$ curl http://peabiru.dev/places.json -v
related to some user:
$ curl http://peabiru.dev/users/boneca/places.json -v
places within a range (using geohash, 3 to 5 characters):
$ curl http://peabiru.dev/places/g/6gy9r.json -v
or
$ curl http://peabiru.dev/places/g/6u4-gx.json -v
$ curl http://peabiru.dev/places/1.json -v
show place with version 1366286774
.
$ curl http://peabiru.dev/places/1/1366286774.json -v
$ curl -X POST http://peabiru.dev/places.json -d @place.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
$ curl -X PUT http://peabiru.dev/places/1.json -d @place2.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
$ curl -X DELETE http://peabiru.dev/places/1.json \
-H "Cookie: peabiru=157e9991810db7" -v
paths endpoint.
$ curl http://peabiru.dev/paths.json -v
paths relate to some user:
$ curl http://peabiru.dev/users/boneco/paths.json -v
paths within a range (using geohash, 3 to 5 characters):
$ curl http://peabiru.dev/paths/g/6gy9r.json -v
or
$ curl http://peabiru.dev/paths/g/6u4-gx.json -v
$ curl http://peabiru.dev/paths/1.json -v
show path version 1366290813
$ curl http://peabiru.dev/paths/1/1366290813.json -v
$ curl -X POST http://peabiru.dev/paths.json -d @path.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
$ curl -X PUT http://peabiru.dev/paths/1.json -d @path2.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
$ curl -X DELETE http://peabiru.dev/paths/1.json \
-H "Cookie: peabiru=157e9991810db7" -v
reports endpoint.
all reports:
$ curl http://peabiru.dev/reports.json -v
reports includind any user:
$ curl http://peabiru.dev/users/boneco/reports.json
reports by path(s) or place(s):
$ curl http://peabiru.dev/reports.json?path[]=9&place[]=8&place[]=22 -v
$ curl -X POST http://peabiru.dev/reports.json -d @report.json \
-H "Cookie: peabiru=157e9991810db7" \
-H "Content-Type: application/json" -v
note: only application user can create reports.