Now using NSwag to generate a openapi doc and provide a visual api explorer via swagger-ui
This commit is contained in:
parent
0dd5e69e6c
commit
f604147de9
@ -37,6 +37,7 @@ namespace ScrumTaskboard
|
|||||||
.UseNpgsql("Host=nig.gl; Port=8543; Username=scrum; Database=taskboard; Password=c6gXud7YvBWp2sgxSgy4wRN")
|
.UseNpgsql("Host=nig.gl; Port=8543; Username=scrum; Database=taskboard; Password=c6gXud7YvBWp2sgxSgy4wRN")
|
||||||
.Options));
|
.Options));
|
||||||
services.AddControllers();
|
services.AddControllers();
|
||||||
|
services.AddOpenApiDocument();
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
@ -64,6 +65,8 @@ namespace ScrumTaskboard
|
|||||||
{
|
{
|
||||||
endpoints.MapControllers();
|
endpoints.MapControllers();
|
||||||
});
|
});
|
||||||
|
app.UseOpenApi();
|
||||||
|
app.UseSwaggerUi3();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user