Changed rest directory structure and URLs to api