mozilla-services / location-leaderboard

A leaderboard service for Mozilla Geolocation Stumbling
Mozilla Public License 2.0
4 stars 5 forks source link

leaderboard-server

Build Status

Coverage Status

Overview

The leaderboard-server is a RESTful service which implements an API for submitting data which describes the geolocation stumbling efforts of contributions to the Mozilla Location Service project. Mozilla Stumbler users can submit data to the leaderboard-server about how many networks were detected within a geospatial 'tile' at a given time, and then query the top contributions.

API Interface

Leaderboard Version Info

Return the version metadata for the deployed version of the code.

Leaderboard Heartbeat

Return the heartbeat metadata for the deployed heartbeat of the code.

Firefox Accounts Configuration

Get the configuration parameters the server uses to integrate with Firefox Accounts.

Firefox Accounts Redirect

Handle a post-authorize redirect from Firefox Accounts back to the leaderboard.

Firefox Accounts Refresh

Refresh a Firefox Accounts access token for a new token using a refresh token.

Get Countries

Get a list of all countries that have been contributed to, the total number of contributions, and their shapes.

Add Stumbles

Submit the number of networks detected within a series of tiles for a given contributor.

Get Leader

Get a leader that has contributed, and their rank globally and in each country that they have contributed to.

Get Leaders

Get all leaders that have contributed and set their public display name, sorted by the highest contributions.

Get Country Leaders

Get the leaders for a given Country.