Implemented REST resource for documents