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 -vwith more information ...
$ curl http://peabiru.dev/users/xxleite.json \
-H "Cookie: peabiru=157e9991810db7" -vauthenticate 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" -vor
$ 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" -vplaces endpoint.
$ curl http://peabiru.dev/places.json -vrelated to some user:
$ curl http://peabiru.dev/users/boneca/places.json -vplaces within a range (using geohash, 3 to 5 characters):
$ curl http://peabiru.dev/places/g/6gy9r.json -vor
$ curl http://peabiru.dev/places/g/6u4-gx.json -v$ curl http://peabiru.dev/places/1.json -vshow 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" -vpaths endpoint.
$ curl http://peabiru.dev/paths.json -vpaths relate to some user:
$ curl http://peabiru.dev/users/boneco/paths.json -vpaths within a range (using geohash, 3 to 5 characters):
$ curl http://peabiru.dev/paths/g/6gy9r.json -vor
$ curl http://peabiru.dev/paths/g/6u4-gx.json -v
$ curl http://peabiru.dev/paths/1.json -vshow 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" -vreports endpoint.
all reports:
$ curl http://peabiru.dev/reports.json -vreports includind any user:
$ curl http://peabiru.dev/users/boneco/reports.jsonreports 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" -vnote: only application user can create reports.