Ajout de settings pour swagger
continuous-integration/drone/push Build is passing Details

deploiement
Clement CHIEU 1 year ago
parent 488ab60b9c
commit ce8ab1cf36

@ -116,8 +116,15 @@ using (var scope = app.Services.CreateScope())
} }
app.UseSwagger(); app.UseSwagger(options =>
app.UseSwaggerUI(); {
options.RouteTemplate = "containers/johnnyratton-sqluedo-api/{documentName}/swagger.json";
});
app.UseSwaggerUI(option =>
{
option.SwaggerEndpoint("/containers/johnnyratton-sqluedo-api/swagger/v1/swagger.json", "Demo API v1");
option.RoutePrefix = "containers/johnnyratton-sqluedo-api";
});
app.UseHttpsRedirection(); app.UseHttpsRedirection();

@ -13,7 +13,7 @@
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "containers/johnnyratton-sqluedo-api",
"applicationUrl": "http://localhost:5015", "applicationUrl": "http://localhost:5015",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -23,7 +23,7 @@
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "containers/johnnyratton-sqluedo-api",
"applicationUrl": "https://localhost:7259;http://localhost:5015", "applicationUrl": "https://localhost:7259;http://localhost:5015",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -32,7 +32,7 @@
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "containers/johnnyratton-sqluedo-api",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

Loading…
Cancel
Save