Added basic API Title and description
This commit is contained in:
parent
f604147de9
commit
5ba9a538db
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue