adding role to the api methods object