renamed rest to api controller