First implementation of get document service