call php method using fetch api code example
Example 1: fetch body show in php code
$entityBody = file_get_contents('php://input');
Example 2: fetch body show in php code
$entityBody = stream_get_contents(STDIN);
$entityBody = file_get_contents('php://input');
$entityBody = stream_get_contents(STDIN);