Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class ApiVersionAddExtensionHandler
- {
- public static IServiceCollection AddApiVersionHandler(this IServiceCollection services)
- {
- services.AddApiVersioning(options => options.ReportApiVersions = true);
- services.AddVersionedApiExplorer(
- options =>
- {
- options.GroupNameFormat = "'v'VVV";
- options.SubstituteApiVersionInUrl = true;
- });
- return services;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement