The aim of this sample solution is to provide you with some "real world" examples of how to consume the Vivantio API from within ASP.NET MVC applications. None of the techniques surrounding the API are specific to MVC though: the two sample libraries provided - Vivantio.Samples.DTO and Vivantio.Samples.JsonApi - can be used from within any .NET application. These samples are published under the MIT License, so you can pretty much do whatever you want with them. If you can't get the samples working, please contact support.
We're using ASP.NET MVC 4 (we know, it's a bit old, but some of you out there in the corporate world are still stuck on VS2012 and can't upgrade...), and we're making use of a number of external third party components, including:
None of them are strictly necessary, and you certainly don't have to use them in your own projects, but they'll make your life a lot easier (at least, they did for us!).
We've tried to keep the code as simple as possible: the focus here is on the API and how to consume it, not on security or performance - we'll leave that to you! - but where we think there's something particular you need to know, we'll point it out in comments.
Feel free to fork this repo and do what you like with it; if you think you can do something better than us, submit a pull request, and we'll gladly consider it! And so without further ado: The Samples...