Adding methods for all api endpoints