Updated api to follow some conventions used in the github v3 api.