IP=$(hostname -I)
Mac=$(cat /sys/class/net/eth0/address)

curl -X PUT "192.168.1.19/test/" \
-H "Content-Type: application/json" \
--data @- <<END;
{
IP_address: "$IP",
Mac_address: "$Mac",
}
END