„POST /service/{serviceid}/rescue“ ändern

master
Thomas Brinkmann 3 years ago
parent 151517eab9
commit 5472fcc22f
  1. 4
      POST-%2Fservice%2F%7Bserviceid%7D%2Frescue.md

@ -45,7 +45,7 @@
$curl = curl_init(); $curl = curl_init();
curl_setopt_array($curl, array( curl_setopt_array($curl, array(
CURLOPT_URL => 'control.local/api/v2/service/12345/rescue', CURLOPT_URL => 'https://api.dsh.gg/api/v2/service/12345/rescue',
CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{ CURLOPT_POSTFIELDS =>'{
"rootpass": "1qQertzuiopas!d" "rootpass": "1qQertzuiopas!d"
@ -64,7 +64,7 @@ echo $response;
##### cURL ##### cURL
```bash ```bash
curl --location --request POST 'control.local/api/v2/service/12345/rescue' \ curl --location --request POST 'https://api.dsh.gg/api/v2/service/12345/rescue' \
--header 'X-TOKEN: test-token' \ --header 'X-TOKEN: test-token' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{ --data-raw '{

Loading…
Cancel
Save