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

master
Thomas Brinkmann 3 years ago
parent 9c10c44930
commit f87114ee23
  1. 6
      POST-%2Fservice%2F%7Bserviceid%7D%2Fstatus.md

@ -1,4 +1,4 @@
## **POST /service/{serviceid}/status**
## **GET /service/{serviceid}/status**
## **Inhalt**
@ -42,7 +42,7 @@ $curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'control.local/api/v2/service/12345/status',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'X-TOKEN: test-token',
'Content-Type: application/json'
@ -57,7 +57,7 @@ echo $response;
##### cURL
```bash
curl --location --request POST 'control.local/api/v2/service/12345/status' \
curl --location --request GET 'control.local/api/v2/service/12345/status' \
--header 'X-TOKEN: test-token' \
--header 'Content-Type: application/json'
```

Loading…
Cancel
Save