Entity Feature Flag
Get all Feature Flags for specific entity.
The Id of the entity.
dummy-entityid
The API key for authentication
test
GET /api/entities/{entityId}/featureFlags HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"flagName": "Flag Name",
"description": "Flag description",
"isActive": true,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}
Add new feature flag info of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/featureFlags HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"description": "text",
"flagName": "text",
"isEnabled": true,
"metadata": {
"forEntityIds": [
"text"
]
}
}
{
"success": true,
"invalidForEntityIds": [
[
"entityId1",
"entityId2"
]
]
}
Get specific flag info.
The Id of the entity.
dummy-entityid
The API key for authentication
test
GET /api/entities/{entityId}/featureFlags/{flagName} HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"flagName": "Flag Name",
"description": "Flag description",
"isActive": true,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}
Update feature flag info of specific entity.
The Id of the entity.
dummy-entityid
The API key for authentication
test
POST /api/entities/{entityId}/featureFlags/{flagName}/update HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"description": "text",
"metadata": {
"forEntityIds": [
"text"
]
}
}
{
"success": true,
"invalidForEntityIds": [
[
"entityId1",
"entityId2"
]
]
}
Get all feature flags via Server-Sent Events.
The Id of the entity.
dummy-entityid
The API key for authentication
test
GET /api/entities/{entityId}/featureFlags/stream HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
Accept: */*
text
Toggle feature flag of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/featureaFlags/{flagName}/toggle HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"flagName": "Flag Name",
"description": "Flag description",
"isActive": true,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}
Terminate Feature Flag For Entity
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/featureFlags/{flagName}/terminate HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"flagName": "Flag Name",
"description": "Flag description",
"isActive": true,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}
Get entity level flags of a particular Entity
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/forEntityId/{forEntityId}/featureFlags HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"flags": {
"entityId": "entity123",
"flagName": "Flag Name",
"description": "Flag description",
"isActive": true,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}
Last updated