Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 11
Paul Dilyard edited this page Oct 1, 2015
·
13 revisions
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/stats/shirtsAuth->admin,staffHTTP/1.1200OK{"small": Number,"medium": Number,"large": Number,"xlarge": Number}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/stats/genderAuth->admin,staffHTTP/1.1200OK{"male": Number,"female": Number,"other": Number}GET/stats/schoolsAuth->admin,staffHTTP/1.1200OK{"schools": [{"name": String,"count": Number}]}GET/stats/countAuth->admin,staffHTTP/1.1200OK{"count": Number}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.