Add getShared Entity rest api to the document api