Implemented doWrite method in the endpoint
Merge remote-tracking branch 'origin/master'