launchdarkly / go-server-sdk

LaunchDarkly Server-side SDK for Go
Other
41 stars 18 forks source link

List feature flags with each flag's details #79

Closed hanpengwang closed 1 year ago

hanpengwang commented 1 year ago

Out team needs to find get all feature flags and flag's all variations. We only found this in the REST API docs

So would be possible for our SDK to have more features that show in rest api?

eli-darkly commented 1 year ago

The SDK libraries are deliberately not implemented as clients for the entire LaunchDarkly REST API. There are generated API clients for that, such as https://github.com/launchdarkly/api-client-go.

The SDKs are focused on the core functionality of evaluating feature flags and generating analytics events. They connect to a small number of API endpoints that are specifically for use by the SDKs, which use the SDK key as a credential. The other REST API that you're talking about uses an entirely different credential for security reasons, and it doesn't have the same purpose— it corresponds to all of the things you can do on the LD dashboard.