rest to api renaming