Added basic API Title and description

This commit is contained in:
Niggl1999 2020-06-04 09:17:27 +02:00
parent f604147de9
commit 5ba9a538db
1 changed files with 11 additions and 1 deletions

View File

@ -37,7 +37,17 @@ namespace ScrumTaskboard
.UseNpgsql("Host=nig.gl; Port=8543; Username=scrum; Database=taskboard; Password=c6gXud7YvBWp2sgxSgy4wRN")
.Options));
services.AddControllers();
services.AddOpenApiDocument();
services.AddOpenApiDocument(
config =>
{
config.PostProcess = document =>
{
document.Info.Version = "v1";
document.Info.Title = "Scrum Taskboard API";
document.Info.Description = "A RESTful API for the Scrum Taskboard Backend";
document.Info.TermsOfService = "None";
};
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.