Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 2.08 KB

FeatureFlagApi.md

File metadata and controls

72 lines (54 loc) · 2.08 KB

FeatureFlagApi

All URIs are relative to http://localhost/v3

Method HTTP request Description
getEnabledFeaturesFlag GET /enabled-features-flag Get enabled feature flags.

getEnabledFeaturesFlag

List<String> getEnabledFeaturesFlag()

Get enabled feature flags.

Example

// Import classes:
import com.delphix.dct.ApiClient;
import com.delphix.dct.ApiException;
import com.delphix.dct.Configuration;
import com.delphix.dct.auth.*;
import com.delphix.dct.models.*;
import com.delphix.dct.api.FeatureFlagApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost/v3");
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FeatureFlagApi apiInstance = new FeatureFlagApi(defaultClient);
    try {
      List<String> result = apiInstance.getEnabledFeaturesFlag();
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FeatureFlagApi#getEnabledFeaturesFlag");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -