We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakdown of feature flag system in: #2235
Description: Adds one or more endpoints to an existing feature flag.
Request Body:
[ "/api/select", "/api/bounty" ]
Response:
feature_name
description
uuid
success
message
data
Example Response (Success):
{ "success": true, "message": "Endpoints added successfully.", "data": { "name": "FF_Select", "description": "Feature for selecting items", "uuid": "123e4567-e89b-12d3-a456-426614174000", "endpoints": [ { "path": "/api/select", "uuid": "567e4567-e89b-12d3-a456-426614174110" }, { "path": "/api/bounty", "uuid": "567e4567-e89b-12d3-a456-426614174111" } ] } }
{ "success": false, "message": "Invalid input. Please provide an array of endpoint paths.", "data": null }
Description: Updates the path of an existing endpoint associated with a feature flag.
{ "new_endpoint_path": "/api/new_endpoint_path" }
{ "success": true, "message": "Endpoint updated successfully.", "data": { "name": "FF_Select", "description": "Feature for selecting items", "uuid": "123e4567-e89b-12d3-a456-426614174000", "endpoints": [ { "path": "/api/new_endpoint_path", "uuid": "567e4567-e89b-12d3-a456-426614174110" }, { "path": "/api/bounty", "uuid": "567e4567-e89b-12d3-a456-426614174111" } ] } }
{ "success": false, "message": "Invalid input. Please provide a valid new_endpoint_path.", "data": null }
{ "success": false, "message": "Endpoint or Feature Flag not found.", "data": null }
Description: Removes an endpoint from an existing feature flag.
{ "success": true, "message": "Endpoint deleted successfully.", }
new_endpoint_path
endpoint_id
feature_flag_id
success: false
The text was updated successfully, but these errors were encountered:
@tobi-bams @humansinstitute assign me?
Sorry, something went wrong.
@tobi-bams @humansinstitute assign
No branches or pull requests
Breakdown of feature flag system in: #2235
Endpoint Management API
1. POST /feature_flags/{feature_flag_id}/endpoints
Description:
Adds one or more endpoints to an existing feature flag.
Request Body:
Response:
feature_name
,description
,uuid
) and the updated array of endpoints.success
,message
, anddata
.Example Response (Success):
2. PUT /feature_flags/{feature_flag_id}/endpoints/{endpoint_id}
Description:
Updates the path of an existing endpoint associated with a feature flag.
Request Body:
Response:
feature_name
,description
,uuid
) and the updated array of endpoints.Example Response (Success):
3. DELETE /feature_flags/{feature_flag_id}/endpoints/{endpoint_id}
Description:
Removes an endpoint from an existing feature flag.
Response:
feature_name
,description
,uuid
) and the updated array of endpoints.Example Response (Success):
Input Validation
new_endpoint_path
.endpoint_id
exists and is associated with the specifiedfeature_flag_id
.Error Handling
success: false
responses for the following cases:The text was updated successfully, but these errors were encountered: