so i've been messing around with a few different application layering styles & architectures and ended up with a solution i'm damn near perfectly happy with.
basically it's a pure vertical slice architecture where the service endpoints are isolated in their own slices that don't interact with each-other to avoid cross contamination.
i've also created a
dotnet new template to help fast-track stubbing out new projects.
you can install the template and create a new project to play around with using the following commands:
dotnet new -i MongoWebApiStarter dotnet new mongowebapi -n MyAwesomeApp
github repo for the project can be found here
i'd appreciate it if you guys could have a play with it and offer some feedback since i'm pretty sure there's room for improvement.