Implemented basic api, not working