Skip to content

Checks if a feature toggle is active or not.

GET
/api/featuretoggle/{featureToggle}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

featureToggle*

Identifier for feature toggle

Typestring
Required

Responses

Successful
JSON
{
"featureToggle": "string",
"isActive": true
}
Authorization
api_key
Variables
Key
Value
featureToggle*
cURL
curl -X GET \
'http://localhost/api/featuretoggle/{featureToggle}'

Samples

cURL
curl -X GET http://localhost/api/featuretoggle/{featureToggle}
JavaScript
fetch("http://localhost/api/featuretoggle/{featureToggle}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/featuretoggle/{featureToggle}");
Python
import requests
response = requests.get("http://localhost/api/featuretoggle/{featureToggle}")
print(response.json())