An API for creating and listing LDLN SyncableObjects, built with the revel framework, go, and mongodb
There are some extra requirements for the LDLN API in addition to the standard revel parameters. For this API to function, the following values need to be populated in conf/app.conf:
revmgo settings: see https://github.com/jgraham909/revmgo
revmgo.dial = database_ip/database_name
revmgo.method = new|clone|copy
landline.db.collection.SyncableObject = SyncableObjects
landline.db.collection.Schema = Schemas
landline.rawdek = PasswordForNotVerySensitiveData!
revel run github.com/msgrasser/api
Run with --help for options.
Go to http://localhost:9100/ and you'll see a list of any SyncableObjects
- Make sure there is a Schema (aka "type") created for the type of object you want to create
- POST to the create endpoint:
curl -X POST http://localhost:9100/types/GPS/create?rawdata=TESTParam,123,7383
Stuck on something? Check the wiki!