move rest api stuff into xos directory
6 files changed