Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ApiConfiguration.cs 600B

1234567891011121314151617181920
  1. using Microsoft.AspNetCore.Mvc;
  2. using System.Diagnostics.CodeAnalysis;
  3. namespace Diligent.WebAPI.Host.Extensions
  4. {
  5. [ExcludeFromCodeCoverage]
  6. public static class ApiConfiguration
  7. {
  8. public static void ConfigureServices(IServiceCollection services)
  9. {
  10. services.AddControllers();
  11. services.AddApiVersioning(options =>
  12. {
  13. options.AssumeDefaultVersionWhenUnspecified = true;
  14. options.ReportApiVersions = true;
  15. options.DefaultApiVersion = new ApiVersion(1, 0);
  16. });
  17. }
  18. }
  19. }