I am new to the Xamarin technology, and I am working on an Asp.NET Core Web application which basically delivers micro-services which will be consumed by a Xamarin.Forms application.
So my Web API will offer quite a few operations, and each of them would use their own model class to represent their response and their parameters.
What bothers me is that I will have a lot of model class to duplicate from the API to the Xamarin application. That's not the end of the world, but I was wondering if there wasn't some kind of mechanism to do that smoothly ? I initially thought about putting all my models in a single library which would be referenced by both the web API and the app but it seems to go against the Xamarin good practices.
I was thinking about something like swagger-codegen, which is capable of generating a SDK based on the different endpoints exposed by an API, but from what I saw it doesn't seem suitable for Xamarin.
Any insight would be much appreciated!