updated the WebAPI implementation
updated the WebAPI implementation