:construction: :gear: A SDK framework that helps create a .NET SDK project for API wrappers/clients
An SDK framework that helps create a C# SDK project for consuming a generic REST API
Build status | Last commit | Tests | Coverage | Code Smells | LoC |
---|---|---|---|---|---|
Download the latest zip file from the Release page.
Package | Version | Downloads |
---|---|---|
GuiStracini.SDKBuilder |
This package allows the easy creation of an SDK (Sofware Development Kit) for consuming a REST API based on WebAPI2 conventions.
The ServiceFactory class implements the IServiceFactory interface, having the methods Get, Post, Put, Delete, Head, and Upload, and uses a self-convention and custom attributes to generate smart endpoints and do requests.
To create a new SDK, first acquire the API endpoints, the objects (in-out) properties, and the authorization flow.
Currently, this package only supports basic authorization (via HTTP headers, or JWT-like. OAuth/OAuth2 is not supported by default, but can be implemented by yourself or in a future version, let me know - via PR - if you make some progress on that!).