„DELETE /order/{orderid}“ ändern

master
Thomas Brinkmann 3 years ago
parent 43dece2667
commit 5ab303ed3a
  1. 4
      DELETE-%2Forder%2F%7Borderid%7D.md

@ -41,7 +41,7 @@
$curl = curl_init(); $curl = curl_init();
curl_setopt_array($curl, array( curl_setopt_array($curl, array(
CURLOPT_URL => 'control.local/api/v2/order/1', CURLOPT_URL => 'https://api.dsh.gg/api/v2/order/1',
CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => array( CURLOPT_HTTPHEADER => array(
'X-TOKEN: test-token', 'X-TOKEN: test-token',
@ -57,7 +57,7 @@ echo $response;
##### cURL ##### cURL
```bash ```bash
curl --location --request DELETE 'control.local/api/v2/order/1' \ curl --location --request DELETE 'https://api.dsh.gg/api/v2/order/1' \
--header 'X-TOKEN: test-token' \ --header 'X-TOKEN: test-token' \
--header 'Content-Type: application/json' --header 'Content-Type: application/json'
``` ```

Loading…
Cancel
Save