From a0e8cc6989300245959347149061e798e055ba55 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 2 Apr 2025 15:12:59 +0200 Subject: [PATCH] =?UTF-8?q?Das=20Swagger-Setup=20wurde=20aktualisiert=20un?= =?UTF-8?q?d=20enth=C3=A4lt=20nun=20eine=20detaillierte=20Dokumentation=20?= =?UTF-8?q?mit=20Versionsangaben,=20Titel,=20Beschreibung=20und=20Kontakti?= =?UTF-8?q?nformationen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EnvelopeGenerator.GeneratorAPI/Program.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.GeneratorAPI/Program.cs b/EnvelopeGenerator.GeneratorAPI/Program.cs index 35abd3f4..175e5292 100644 --- a/EnvelopeGenerator.GeneratorAPI/Program.cs +++ b/EnvelopeGenerator.GeneratorAPI/Program.cs @@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Localization; using Microsoft.EntityFrameworkCore; using System.Globalization; using Scalar.AspNetCore; +using Microsoft.OpenApi.Models; var builder = WebApplication.CreateBuilder(args); @@ -32,7 +33,21 @@ builder.Services.AddCors(options => // Swagger builder.Services.AddEndpointsApiExplorer(); -builder.Services.AddSwaggerGen(); +builder.Services.AddSwaggerGen(options => +{ + options.SwaggerDoc("v1", new OpenApiInfo + { + Version = "v1", + Title = "signFLOW Absender-API", + Description = "\"Eine API zur Verwaltung der Erstellung, des Versands und der Nachverfolgung von Umschlägen in der signFLOW-Anwendung.", + Contact = new OpenApiContact + { + Name = "Digital Data GmbH", + Url = new Uri("https://digitaldata.works/digitale-signatur#kontakt"), + Email = "info-flow@digitaldata.works" + }, + }); +}); builder.Services.AddOpenApi(); // DbContext var connStr = config.GetConnectionString("Default") ?? throw new InvalidOperationException("There is no default connection string in appsettings.json.");