A SDK framework that helps create a C# SDK project for consuming API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GuiStracini.SDKBuilder.Tests
GuiStracini.SDKBuilder
.gitignore
.wakatime-project
GuiStracini.SDKBuilder.png
GuiStracini.SDKBuilder.sln
LICENSE
README.md
appveyor.yml

README.md

GBStracini.SDKBuilder

Build status GuiStracini.SDKBuilder NuGet Version GuiStracini.SDKBuilder NuGet Downloads Github All Releases

A SDK framework that helps create a C# SDK project for consuming a generic REST API

GuiStracini.SDKBuilder


NuGet package: https://www.nuget.org/packages/GuiStracini.SDKBuilder

Install-Package GuiStracini.SDKBuilder

This package allows the easy creation of a 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 convetion and custom attributes to generate smart endpoints and do requests.


Creating a new SDK

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!)