Fix POST curl examples in rest-api.md
The POST curl example calls in rest-api.md used the old
/org/openbmc, update to /xyz/openbmc_project/.
Change-Id: Ib67827e94b1b47a5ab6bd0ed4107e78e73f88b48
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/rest-api.md b/rest-api.md
index 76e7a8b..8795310 100644
--- a/rest-api.md
+++ b/rest-api.md
@@ -210,18 +210,17 @@
These also require a json formatted payload.
-To invoke a method with parameters:
+To invoke a method with parameters (Downloading a Tar image via TFTP):
- curl -b cjar -k -H "Content-Type: application/json" -X POST \
- -d '{"data": [<positional-parameters>]}' \
- https://bmc/org/openbmc/control/fan0/action/setspeed
+ curl -b cjar -k -X POST -H "Content-Type: application/json" \
+ -d '{"data": ["<Image Tarball>", "<TFTP Server>"]}' \
+ https://bmc/xyz/openbmc_project/software/action/DownloadViaTFTP
-To invoke a method without parameters:
+To invoke a method without parameters (Factory Reset of BMC and Host):
- curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST \
- -d '{"data": []}' \
- https://bmc/org/openbmc/control/fan0/action/getspeed
-
+ curl -b cjar -k -H 'Content-Type: application/json' -X POST \
+ -d '{"data":[]}' \
+ https://bmc/xyz/openbmc_project/software/action/Reset
## HTTP DELETE operations
DELETE operations are for removing instances. Only D-Bus objects (instances) can