Example configuration.yaml entry
rest_command:
my_request:
url: https://ifmcaretest.co.uk/php-api-v2/api/3-users.php/
method: POST
payload: ‘{“req”: “{{ status }}”,“sensor_name”: “{{ emoji }}”}’
and in the service
{
“status”:“createSensor”,
“emoji”:“test3”
}
But when I call the api there is no insert into the external database as required. Please what could be wrong with this. This is my first rest call.