Skip to content
andersoncardoso edited this page Sep 8, 2014 · 1 revision

V1

Our first version is very simple. We are going to add more features to the API as long as they are needed. So for now our API is a read-only for the main resources.

If you have any sugestion or request, please give us a shout on the issues page.

All resources are provided in JSON or XML.

For using the API you must use your auth_token for authenticating. In your user settings page you can grab your token. Then on every request use the following header:

Authorization: Token token=MY-TOKEN-GOES-HERE

For the format, just use a regular Mime-Type Accept header

User

  • GET /api/v1/users/

get a user info

ex: curl -XGET -H "Authorization: Token token=MY-TOKEN" http://meppit.io/api/v1/users/<my-id>

Data

  • GET /api/v1/geo_data/

get a geo_data info

ex: curl -XGET -H "Authorization: Token token=MY-TOKEN" http://meppit.io/api/v1/geo_data/<id>

  • GET /api/v1/geo_data

get all geo_data

ex: curl -XGET -H "Authorization: Token token=MY-TOKEN" http://meppit.io/api/v1/geo_data

Map

  • GET /api/v1/maps/

get a map info, with nested geo_data

ex: curl -XGET -H "Authorization: Token token=MY-TOKEN" http://meppit.io/api/v1/maps/<id>

  • GET /api/v1/maps

get all maps

ex: curl -XGET -H "Authorization: Token token=MY-TOKEN" http://meppit.io/api/v1/maps

Clone this wiki locally