POST JSON with Curl

An example of a Curl request to post a JSON string to the REST API endpoint. The 'Content-Type: application/json' request header indicates the media type of the resource in the request body. The 'Accept: application/json' request header tells the server that the client expects a JSON. The JSON string is passed in the Curl -d command-line parameter.
Loading...