|
Within the MMS API Documentation we have a number of examples.
These examples all consistently use -data @{ some: "Json"}. The @ symbol in this case is incorrect as it states that what follows will be a filename.
Example command from API:
curl -u "username:apiKey" -H "Content-Type: application/json" "https://mms.mongodb.com/api/public/v1.0/groups/<groupid>/hosts" -X POST --digest --data @-
|
{
|
"hostname": "localhost",
|
"port": 27017
|
}
|
Correct Example
curl -u "username:apiKey" -H "Content-Type: application/json" "https://mms.mongodb.com/api/public/v1.0/groups/<groupid>/hosts" -X POST --digest --data '{ "hostname": "localhost", "port": 27017 }'
|
Can we please update (and ideally test) all the examples to confirm that they are correct?
|