- add document queries rest endpoint