POST entity configuration
Use api_post_config.py
to test POST requests to the /config endpoint and to verify the expected HTTP return code.
api_post_config.py
makes a POST request with the input JSON to create or configure the specified entity, and it compares expected and actual HTTP return codes in a console output message.
Use this script with the following command and arguments:
python api_post_config.py $host $token $endpoint $http_code $input_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.
- $input_file
- File path for query input.