Using Swagger to automatically generate the client code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BlogAPI
BlogReader
Droid
iOS
.gitignore
BlogExample.sln
LICENSE
README.md

README.md

XFBlogExample

Is an example of a simple ASP.NET Core API and Xamarin.Forms client. There is a blogpost with all the details about this project on my blog.

API

Has an integrated Swagger that is used to generate the client code.

Xamarin.Forms Client

The API consumer code is generated using NSwag:

dotnet dotnet-nswag.dll swagger2csclient /input:swagger.json /classname:BlogService /namespace:BlogReader /output:BlogService.cs