Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
Xennis edited this page Feb 20, 2015 · 1 revision

API v1 URL: http://localhost/api/v1/

Inks

Get inks

Get all Inks in a circle given by a location and a radius.

API-URL/message/<latitude>,<longitude>,<radius_in_meters>/

Example

API-URL/message/60.0,50.0,1000.0/

Post ink

Post an Ink (the server will store it in the database).

API-URL/message/<JSON ink object>

Example

API-URL/message/ with an object formatted as json, for instance:

{
    "text" : "This is my massage!",
    "location_lat" : 60.0,
    "location_lon" : 10.0,
}

...but this will slightly change as the Ink-model is adjusted.

Delete ink

Delete an Ink with a specific ID.

API-URL/message/<message_id>/

Clone this wiki locally