Using cURL to Test Your Send Requests

The command-line tool cURL (https://curl.se) uses a URL format to transfer data. Use cURL to test the format that you use for your REST API requests. It is available in most environments. Refer to third-party cURL documentation for details on the command line tool and library.

cURL Examples

The following examples use cURL.

Retrieving a Resource

Command

The example command is for a Cloud environment.

curl -u {username}:{password} -X GET -H "Accept:application/json"
				https://{host}/{tenant}/dev01/dac/rest/apis/cross/v-model/servicePoints/{servicePointId}