Skip to content
Paul Dilyard edited this page Oct 1, 2015 · 13 revisions

Number of people registered each month

GET/stats/registrationsAuth->admin,staffHTTP/1.1200OK{"months": [{"name": String,// the name of the month"count": Number// the number of registrations in that month}]}

Get the t-shirt size distribution

GET/stats/shirtsAuth->admin,staffHTTP/1.1200OK{"small": Number,"medium": Number,"large": Number,"xlarge": Number}

Get the distribution of dietary restrictions

GET/stats/dietaryAuth->admin,staffHTTP/1.1200OK{"restrictions": [{"name": String,// the name of a dietary restriction"count": Number// the number of people with that restriction}]}

Get a gender comparison

GET/stats/genderAuth->admin,staffHTTP/1.1200OK{"male": Number,"female": Number,"other": Number}

Get a distribution of schools

GET/stats/schoolsAuth->admin,staffHTTP/1.1200OK{"schools": [{"name": String,"count": Number}]}

Get the number of applied attendees

GET/stats/countAuth->admin,staffHTTP/1.1200OK{"count": Number}

Queries

You can also query all of the /stats routes by adding your query to the request URI, like this:

GET /stats/gender?checked=true

The above will return the gender distribution of attendees who are checked in. You can run queries against any property in the Application model.

Clone this wiki locally