Post Api Call Using Javascript Innerhtml Definition