rename rest directory to api