Made the api interface more REST compliant