Skip to content

Commit

Permalink
Add More Details to README
Browse files Browse the repository at this point in the history
  • Loading branch information
justindbaur committed Nov 16, 2024
1 parent e90acfc commit a23a469
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/Bitwarden.Server.Sdk/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ on your web application and configuring MSBuild properties to configure the feat
want.

## Feature Flags

Feature flag support can be added by adding `<BitIncludeFeatures>true</BitIncludeFeatures>` to
your `csproj` file. The following API's become available:

- `IFeatureService` for getting values of features.
- `RequireFeatureAttribute` for requiring a feature is enabled on controllers and controller actions.
- `IEndpointConventionBuilder.RequireFeature()` for requiring a feature is enabled on minimal API's.
- `IApplicationBuilder.UseFeatureFlagChecks()` for adding the middleware to do the above checks.
- `IServiceCollection.AddKnownFeatureFlags()` for adding flags that will show up in `IFeatureService.GetAll()`
- `IServiceCollection.AddFeatureFlagValues()` for adding values for feature flags.

0 comments on commit a23a469

Please sign in to comment.