I have a dotnet core web api that is documented by swagger. Here is how I set it up:
public void ConfigureServices(IServiceCollection services) {