-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
// Enable the default method attributes c.EnableAnnotations(); // Add the SwaggerResponseHeader attribute (look at a controller call that returns pagination info) c.OperationFilter(); // The following three lines define trigger generation of security info within the swagger.json // https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters#security-requirements-filter c.OperationFilter(); c.OperationFilter(); c.AddSecurityDefinition("oath2", new OpenApiSecurityScheme() { Description = "Standard authorization using bearer scheme. Ex: \"bearer {token}\"", In = ParameterLocation.Header, Name = "Authorization", Type = SecuritySchemeType.ApiKey }); // Main app definition c.SwaggerDoc("v1", new OpenApiInfo { Title = "The awesome API", Version = "v1", Description = "The Awesome API V1" }); // Look at XML comments and pull summaries and examples into the swagger.json // Note: the csproj file must be edited to generate teh xml documentation files var xmlFiles = Directory.GetFiles(AppContext.BaseDirectory,"*.xml",SearchOption.TopDirectoryOnly).ToList(); xmlFiles.ForEach(xmlFile => c.IncludeXmlComments(xmlFile));