Update rest.md, fix inconsistent example for API CURL (#1595)

This commit is contained in:
Tarmo 2022-12-29 00:42:49 +02:00 committed by GitHub
parent d4d5d20f67
commit 7a4f541851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,7 +654,7 @@ Send an MQTT message:
```shell ```shell
curl -X POST \ curl -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "x-ha-access:YOUR_PASSWORD" \ -H "Authorization: Bearer ABCDEFGH" \
-d '{"payload": "OFF", "topic": "home/fridge", "retain": "True"}' \ -d '{"payload": "OFF", "topic": "home/fridge", "retain": "True"}' \
http://localhost:8123/api/services/mqtt/publish http://localhost:8123/api/services/mqtt/publish
``` ```