public static void UseSwagger(this IApplicationBuilder application, ApiResource apiResource)
 {
     application.UseSwagger(
         application.ApplicationServices.GetRequiredService <IApiVersionDescriptionProvider>(),
         apiResource.GetSwaggerClientId(),
         apiResource.GetSwaggerClientName());
 }