refactor clientapp rest api
tiny refactor