Skip to content

Checks if a feature toggle is active or not.

GET
/api/featuretoggle/{featureToggle}

Authorizations

Parameters

Path Parameters

featureToggle*

Identifier for feature toggle

Typestring
Required

Responses

Successful
JSON
{
"featureToggle": "string",
"isActive": true
}

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())