You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ApiConfiguration.cs 531B

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