-
Notifications
You must be signed in to change notification settings - Fork 6
API documentation
Alexandre Vallette edited this page Mar 1, 2016
·
10 revisions
Pheromon exposes, by default, a public API enabling anyone to get and reuse the open-data we are generating.
The API uses different routes to answers the demands:
-
GET
routes that can be queried directly from the browser by pasting the correct url
https://pheromon.ants.builders/measurements/places?ids=19&types=wifi&start=2016-01-04&end=2016-01-05
Here is a list of the routes available by anyone (Open-data):
-
/place/get/:id
inGET
: knowing the id of a place, get all its info -
/place/getAll
inGET
: get all the places registered -
/placeLatestMeasurement/:place/:type
inGET
: get latest measurement of one type for one place -
/placesLatestMeasurement/:type
inGET
: get latest measurement of one type for all places -
/measurements/places
inGET
with argumentsids
,types
,start
andend
: get various measurements of various types for various places -
/measurements/place/raw
with argumentsid
,type
,start
andend
: get place measurements of a specified type without any processing. -
/allPlacesInfos
inGET
get all places
from the browser, get all the places: