Finish the rough REST interface