changes to the rest api interface will break this, can we use the rest api js client to get the data?