GET request for config endpoints
Use api_get_config.py
to test GET requests.
api_get_config.py
makes a GET request, compares expected and actual HTTP return codes in a console output message, and saves the response of the GET request to a file.
Use this script with the following command and arguments:
python api_get_config.py $host $token $endpoint $http_code $output_file
- $host
- Hostname or URL for the system running V‑Spark.
- $token
-
Authorization token with the required read or write permissions for the request.
- $endpoint
- Request endpoint, including any path parameters.
- $http_code
- The HTTP code expected to be returned with the response.
- $output_file
- File path for query output.