This is a JSON-RPC service that demonstrates the basic features of the Jayrock library.
The following JSON-RPC methods are supported (try these using the DataService test page):
- ChangePassword(guid, password)
- Changes the password
- CreateAccount(account)
- GetAchievements(guid)
- Get achievements
- GetLevels(minuteTotal, totalDistance, tripCount)
- GetPageConfig(guid, isDeviceGuid)
- Returns page config
- GetRoute(guid, routeId)
- Returns the route of a user with routeId
- GetRoutes(guid, startDate)
- Returns the routes of a user
- Login(username, password)
- Login with username and password
- SaveIntroduction(account)
- Set the introduction
- SetCampaignType(guid, campaignType)
- Updates a plan
- system.about()
- Returns a summary about the server implementation for display purposes.
- system.listMethods()
- Returns an array of method names implemented by this service.
- system.version()
- Returns the version server implementation using the major, minor, build and revision format.
- UpdateAccount(account)
- UpdatePlan(guid, plan)
- Updates a plan
The following method(s) of this service are marked as idempotent and therefore safe for use with HTTP GET:
- ChangePassword
- CreateAccount
- GetAchievements
- GetLevels
- GetPageConfig
- GetRoute
- GetRoutes
- Login
- SaveIntroduction
- SetCampaignType
- system.about
- system.listMethods
- system.version
- UpdateAccount
- UpdatePlan