|
|
@ -40,7 +40,7 @@ |
|
|
|
$curl = curl_init(); |
|
|
|
$curl = curl_init(); |
|
|
|
|
|
|
|
|
|
|
|
curl_setopt_array($curl, array( |
|
|
|
curl_setopt_array($curl, array( |
|
|
|
CURLOPT_URL => 'control.local/api/v2/dns/zones/domain1.de/dnssec', |
|
|
|
CURLOPT_URL => 'https://api.dsh.gg/api/v2/dns/zones/domain1.de/dnssec', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'PUT', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'PUT', |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
"dnssec": true |
|
|
|
"dnssec": true |
|
|
@ -59,7 +59,7 @@ echo $response; |
|
|
|
|
|
|
|
|
|
|
|
##### cURL |
|
|
|
##### cURL |
|
|
|
```bash |
|
|
|
```bash |
|
|
|
curl --location --request PUT 'control.local/api/v2/dns/zones/domain1.de/dnssec' \ |
|
|
|
curl --location --request PUT 'https://api.dsh.gg/api/v2/dns/zones/domain1.de/dnssec' \ |
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
--data-raw '{ |
|
|
|
--data-raw '{ |
|
|
|