dev server swagger updation

This commit is contained in:
Sysadmin 2023-09-03 17:55:03 -04:00
parent e0cb2ccc7d
commit b558fdf651
8 changed files with 28 additions and 9 deletions

View File

@ -38,7 +38,7 @@ if (app.Environment.IsDevelopment())
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
options.SwaggerEndpoint("/swagger/v1/swagger.json","" ); options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
}); });
} }

View File

@ -42,7 +42,7 @@ var app = builder.Build();
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI(options => { options.SwaggerEndpoint("/attachments/swagger/v1/swagger.json", ""); });
} }
app.UseAuthorization(); app.UseAuthorization();

View File

@ -35,7 +35,7 @@ if (app.Environment.IsDevelopment())
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
// options.RoutePrefix = ""; // Serve Swagger UI at the root URL // options.RoutePrefix = ""; // Serve Swagger UI at the root URL
}); });
} }

View File

@ -34,8 +34,7 @@ if (app.Environment.IsDevelopment())
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/locations/swagger/v1/swagger.json", "");
// options.RoutePrefix = ""; // Serve Swagger UI at the root URL
}); });
} }

View File

@ -36,7 +36,7 @@ var app = builder.Build();
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => { options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); }); app.UseSwaggerUI(options => { options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", ""); });
} }
app.UseAuthorization(); app.UseAuthorization();

View File

@ -70,7 +70,7 @@ var app = builder.Build();
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => { options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); }); app.UseSwaggerUI(options => { options.SwaggerEndpoint("/surveyresponses/swagger/v1/swagger.json", ""); });
} }
app.UseAuthorization(); app.UseAuthorization();

View File

@ -53,7 +53,7 @@ var app = builder.Build();
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => { options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); }); app.UseSwaggerUI(options => { options.SwaggerEndpoint("/survey/swagger/v1/swagger.json", ""); });
} }
app.UseAuthentication(); app.UseAuthentication();

View File

@ -13,6 +13,9 @@ services:
damageassesment.api.answers: damageassesment.api.answers:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.150
ports: ports:
- "6001:80" - "6001:80"
@ -20,6 +23,9 @@ services:
damageassesment.api.attachments: damageassesment.api.attachments:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.151
ports: ports:
- "6002:80" - "6002:80"
@ -27,24 +33,36 @@ services:
damageassesment.api.employees: damageassesment.api.employees:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.152
ports: ports:
- "6003:80" - "6003:80"
damageassesment.api.locations: damageassesment.api.locations:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.153
ports: ports:
- "6004:80" - "6004:80"
damageassesment.api.questions: damageassesment.api.questions:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.154
ports: ports:
- "6005:80" - "6005:80"
damageassesment.api.survey: damageassesment.api.survey:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
networks:
nginx-network:
ipv4_address: 172.18.0.155
ports: ports:
- "6006:80" - "6006:80"
@ -57,6 +75,8 @@ services:
- services__Employees=http://damageassesment.api.employees:80 - services__Employees=http://damageassesment.api.employees:80
- services__Attachments=http://damageassesment.api.attachments:80 - services__Attachments=http://damageassesment.api.attachments:80
- services__Surveys=http://damageassesment.api.survey:80 - services__Surveys=http://damageassesment.api.survey:80
networks:
nginx-network:
ipv4_address: 172.18.0.156
ports: ports:
- "6007:80" - "6007:80"