Skip to content

Commit bd935af

Browse files
GimmeDaKittyChoc13
authored andcommitted
Modified swagger to work on test project (#80)
1 parent 06e744c commit bd935af

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

test/Website/Properties/launchSettings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
"windowsAuthentication": false,
44
"anonymousAuthentication": true,
55
"iisExpress": {
6-
"applicationUrl": "http://localhost:51020/",
6+
"applicationUrl": "http://localhost:5000/",
77
"sslPort": 44301
88
}
99
},
1010
"profiles": {
1111
"IIS Express": {
1212
"commandName": "IISExpress",
1313
"launchBrowser": true,
14-
"launchUrl": "swagger",
1514
"environmentVariables": {
1615
"ASPNETCORE_ENVIRONMENT": "Development"
1716
}

test/Website/Startup.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ public void Configure(IApplicationBuilder app)
2121
{
2222
app
2323
.UseDeveloperExceptionPage()
24-
.UseMvc()
2524
.UseSwagger()
26-
.UseSwaggerUI(c => { c.SwaggerEndpoint($"{_Version}/swagger.json", _AppTitle); });
25+
.UseSwaggerUI(
26+
c =>
27+
{
28+
c.SwaggerEndpoint($"swagger/{_Version}/swagger.json", _AppTitle);
29+
c.RoutePrefix = string.Empty;
30+
})
31+
.UseMvc();
2732
}
2833

2934
public void ConfigureServices(IServiceCollection services)

test/Website/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ website:
88
consul:
99
image: consul
1010
ports:
11-
- "8500:8500"
12-
11+
- "8500:8500"

0 commit comments

Comments
 (0)