Add rest support to kairos