You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
This endpoint allows admins to delete an existing feature flag along with its associated endpoints.
Response:
The response will return a success status, a message indicating whether the deletion was successful, and an appropriate error message if the feature flag was not found.
Breakdown of feature flag system in: #2235
1. GET /feature_flags
Description:
This endpoint retrieves a list of all feature flags, including their status (
enabled
) and associated endpoints.Response:
success
: A boolean indicating whether the operation was successful.message
: A descriptive message (e.g., "Feature flags fetched successfully").data
: An array of feature flag objects containing the details of each feature flagExample Response:
2. POST /feature_flags
Description:
This endpoint allows admins to create a new feature flag with associated endpoints.
Request Body:
Response:
success
status, a message, and the created data.Example Response:
3. PUT /feature_flags/{id}
Description:
This endpoint allows admins to update an existing feature flag’s name, description, and enabled status.
Request Body:
Response:
success
status, a message, and the updated data.Example Response:
4. DELETE /feature_flags/{id}
Description:
This endpoint allows admins to delete an existing feature flag along with its associated endpoints.
Response:
success
status, a message indicating whether the deletion was successful, and an appropriate error message if the feature flag was not found.Example Response (Success):
The text was updated successfully, but these errors were encountered: