add POST method for creating document