|
|
|
@ -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' |
|
|
|
|
``` |
|
|
|
|