Failed to load API definition.

  • Post author:
  • Post category:其他


        services.AddSwaggerGen(c =>
        {
            c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());
            //c.SwaggerDoc("v1", new OpenApiInfo { Title = "TodoAPI", Version = "v1.0" });