🚧 ⚙️ A SDK framework that helps create a .NET SDK project for API wrappers/clients
An SDK framework designed to streamline the creation of C# SDKs for consuming generic REST APIs.
Build Status | Last Commit | Tests | Coverage | Code Smells | LoC |
---|---|---|---|---|---|
Download the latest version from the Release Page.
Package | Version | Downloads |
---|---|---|
GuiStracini.SDKBuilder |
GuiStracini.SDKBuilder simplifies SDK development for REST APIs using WebAPI2 conventions. It provides a ServiceFactory class that implements the IServiceFactory interface, including methods for Get, Post, Put, Delete, Head, and Upload operations.
The library leverages self-convention and custom attributes to generate intelligent endpoints and handle API requests efficiently.
IServiceFactory
, IRequestBase
, and IResponseBase
IServiceFactory serviceFactory = new ServiceFactory();
var response = serviceFactory.Get<MyResponseType>("/api/resource");
public class MyRequest : IRequestBase {
public string Property { get; set; }
}
public class MyResponse : IResponseBase {
public string Result { get; set; }
}
To build a new SDK, you need:
🔒 Note: Currently, the package supports Basic Authorization (via HTTP headers or JWT). OAuth/OAuth2 is not natively supported, but you can extend it. Contributions via PR are welcome!
This project is licensed under the MIT License. See the LICENSE file for details.
If you have suggestions, bug reports, or feature requests, feel free to open an issue or submit a PR.
Happy coding! 🚀