Added api namespace and changed to correct version of rails