User Pro Guide
If you want to set up your own Raspberry Pi you will need the API reference.
The header of all requests is:
Content-Type: application/json, Authorization: token
Customers
- URL: http://loggr.stkn.org/api/Customers
- Model: Customer {realm (string, optional), username (string, optional), credentials (object, optional), challenges (object, optional), email (string), emailVerified (boolean, optional), verificationToken (string, optional), status (string, optional), created (string, optional), lastUpdated (string, optional), id (objectid, optional)}
- POST a Customer
- GET a Customer
- PUT a Customer
Sensors
- URL: http://loggr.stkn.org/api/Customers/{id}/sensors
- Model: Sensor {type (string), location (string), unit (string), id (objectid, optional), customerId (objectid, optional)}
- POST your sensors
- GET your sensors
- DELETE your sensors. Only User id required.
Meterings
- URL: http://loggr.stkn.org/api//Customers/{id}/meterings
- Metering {value (number), time (string), id (objectid, optional), customerId (objectid, optional), sensorId (objectid, optional)}
- POST your meterings
- GET your meterings
- DELETE your meterings. Only User id required.