Skip to content

is feature enabled

GET
/api/v1/feature-flags/check

Controller:

github.com/raghavyuva/nixopus-api/internal/features/feature-flags/controller.(*FeatureFlagController).IsFeatureEnabled

Middlewares:

  • github.com/go-fuego/fuego.defaultLogger.middleware
  • github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2

Parameters

Header Parameters

Accept
Typestring

Responses

OK
JSON
{
"data": {
"is_enabled": true
},
"message": "string",
"status": "string"
}

Samples

cURL
curl -X GET http://localhost/api/v1/feature-flags/check
JavaScript
fetch("http://localhost/api/v1/feature-flags/check")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/v1/feature-flags/check");
Python
import requests
response = requests.get("http://localhost/api/v1/feature-flags/check")
print(response.json())
Powered by VitePress OpenAPI

Made with love
Released under the Functional Source License (FSL)