The examples within this chapter use the cURL command-line tool to demonstrate how to access the Commerce Cloud Search and Navigation REST API. To connect securely to a server, you must install a version of cURL that supports SSL.
The following procedure demonstrates how to install cURL on a Windows 64–bit system.
In your browser, navigate to the cURL home page at http://curl.haxx.se and click Download in the left navigation menu.
On the cURL Releases and Downloads page, locate the SSL-enabled version of the cURL software that corresponds to your operating system, click the link to download the ZIP file, and install the software.
You are now ready to send requests to the Commerce Cloud Search and Navigation REST API using cURL.
This table summarizes the cURL options used in the command examples.
cURL Option | Description |
---|---|
| Identifies the request document, in JSON format, on the local machine. |
| Defines one or both of the following: Content type of the request document Custom header to pass to server |
| Writes output to a file instead of |
| Indicates the type of request (for example, GET, POST, and so on). |
For example:
curl -X GET -H <request-header>:<value> https://<subdomain>.<domain>.com/<path>/resource-path>