Add rest api stuff back.