Feature Flags API

Get the Space Developer Environment Variable Visibility feature flag (experimental)

GET /v2/config/feature_flags/space_developer_env_var_visibility

When enabled, space developers can perform a get on the /v2/apps/:guid/env endpoint, and both space developers and space supporters can perform a get on the /v3/apps/:guid/env and /v3/apps/:guid/environment_variables endpoints. When disabled, neither space developers nor space supporters can access these endpoints.

Request

Route

GET /v2/config/feature_flags/space_developer_env_var_visibility

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MyIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.HX-ICDymsHSR2KVIiPuSk0igf1wsG2OWq2aml4Y_tCI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/space_developer_env_var_visibility" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MyIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.HX-ICDymsHSR2KVIiPuSk0igf1wsG2OWq2aml4Y_tCI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "name": "space_developer_env_var_visibility",
  "enabled": true,
  "error_message": null,
  "url": "/v2/config/feature_flags/space_developer_env_var_visibility"
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: eb82c551-c189-4055-b30b-082a9b987443
Content-Length: 166
X-Content-Type-Options: nosniff