Beispiel #1
0
 /// <summary>
 /// Подключить JWT Token (versionName = "jwt")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 public static void AddSwaggerJWTTokenSecurityDefinitions(this IServiceCollection services, string xmlPath)
 {
     SwaggerGenDefinition.SwaggerJWTTokenStartupService(services, xmlPath, null, "jwt");
 }
Beispiel #2
0
 /// <summary>
 /// Подключить JWT Token (versionName = "jwt")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 /// <param name="swaggerInfo"></param>
 /// <param name="versionName"></param>
 public static void AddSwaggerJWTTokenSecurityDefinitions(this IServiceCollection services, string xmlPath, OpenApiInfo swaggerInfo = null, string versionName = "jwt")
 {
     SwaggerGenDefinition.SwaggerJWTTokenStartupService(services, xmlPath, swaggerInfo, versionName);
 }