Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
None
Description
The copyable code example is:
curl -H "Content-Type: application/json" \
|
-X POST "https://stitch.mongodb.com/api/client/v1.0/app/hmac-test-vxdts/svc/http1/incomingWebhook/593ebc9d57e0fa4051f173e6?secret=12345"
|
-d { "message": "HELLO" }
|
There is a missing line continuation character at the end of the second line and the contents of the -d parameter must be surrounded in quotes. The correct code should look like this:
curl -H "Content-Type: application/json" \
|
-X POST "https://stitch.mongodb.com/api/client/v1.0/app/hmac-test-vxdts/svc/http1/incomingWebhook/593ebc9d57e0fa4051f173e6?secret=12345" \
|
-d '{ "message": "HELLO" }'
|
As well this example shouldn't be copyable since an end-user cannot execute it. The hmac-test-vxdts Stitch application does not exist.