-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
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
[FLI-783] C# Server Side SDK #86
Comments
https://github.com/mrjavaguy/flipt-rest-dotnet/tree/main is an example rest of the openapi, is this what you are after? It used a code generator. |
Hey @mrjavaguy ! Thanks for looking at this! We're totally down for using generated code as long as its idiomatic. Ive only done a bit of C# so would def want to lean on your experience here. Also, our current Server Side SDKs only expose the Evaluation APIs and (ideally) ListFlags. Would it be possible to have the generator only generate those methods to keep it consistent with the other languages? A user in Discord mentioned they were working on a C# OpenFeature SDK as well (unless that was you ;) ) Let me try and find that thread |
@markphelps So you are looking for Evaluation Api and ListFlag. Are there any other requirements you would like for the C# SDK? I think I'll take a stab at it. Is this the endpoint for the listflags that you are talking about? |
Thanks @vgwizardx !! That would be very much appreciated! Yes I think the main REST endpoints we need supported are: With support for authentication: https://docs.flipt.io/reference/overview#authentication |
@markphelps Hey, I was wondering how ListFlags is used. I'm only asking because I can't really think of a situation where a service using the flags would want to list all the flags. Wouldn't you just use the UI? |
@vgwizardx yeah i see your point, and that's what we initially thought as well. we did have one or two users request Happy to just have the evaluation calls implemented for now! |
@markphelps Cool, I'm working on auth now, and then I will take some time to test it all out. |
@vgwizardx awesome! lmk if I can help with anything |
@markphelps I got super busy, but I wanted to share what I have so far. I haven't had a chance to test this and might not until next week, but here is what I have so far: https://github.com/vgwizardx/flipt-server-sdks/tree/CSharp-Sdk. @erka If you have time to give this a try, feel free to do so and let me know. |
This is looking great @vgwizardx !! thank you! do you want to open it up as a PR and we can give it a proper review? |
@markphelps Yeah, I can do that today. Since I have yet to have a chance to test it and will be busy (My daughter graduated high school this year). So that can help if someone else can give it a try and make sure it is working properly. |
Sounds great. thanks @vgwizardx ! and congrats to your daughter!! 🎓 |
flipt-io#86 - Add Authentication - Add Evaluation (Boolean, Variant and Batch)
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](flipt-io#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) - Removed hardcoded "Bearer" prefix from AuthenticationHeaderValue constructor to use the value returned by _authenticationStrategy.GetAuthorizationHeader() method for more flexibility and customization. - Also, removed unnecessary appsettings files, EvaluationController, DTOs, Models, and Program.cs. Signed-off-by: vgwizardx <[email protected]>
[FLI-783 - C# Server Side SDK](#86) - Add Authentication - Add Evaluation (Boolean, Variant, and Batch) - Removed hardcoded "Bearer" prefix from AuthenticationHeaderValue constructor to use the value returned by _authenticationStrategy.GetAuthorizationHeader() method for more flexibility and customization. - Also, removed unnecessary appsettings files, EvaluationController, DTOs, Models, and Program.cs. Signed-off-by: vgwizardx <[email protected]>
@markphelps don't forget to close this. |
Yup, just waiting until we setup CD to push to nuget and will close. Thanks @vgwizardx ! |
@vgwizardx Im working on getting this SDK released to Nuget and I have a naming question for you (or others familiar with .NET/C# ecosystem) Should we call this SDK I ask because we have an existing gRPC SDK that we named flipt-grpc-dotnet, so i'd prefer to stick with |
Actually.. nevermind it seems we just called it Flipt.grpc
so I'll just call this |
@markphelps Yeah, I would just call it Flipt. Another good thing to do is to start with version 0.0.1 (if we are saying alpha) or 8.0.0 and let the first number match the .net version. |
Published here: https://www.nuget.org/packages/Flipt/ Thanks for all your help @vgwizardx !! It really means a lot! |
I'm happy to help. I will be using this sometime soon, so I will send PRs if I find any improvements. |
Language
C#
Willing to Implement
Willing to Review
Additional Notes
Re: flipt-io/flipt#2208
FLI-783
The text was updated successfully, but these errors were encountered: