Небольшой фикс
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 19s
Create and publish a Docker image / Deploy image (push) Successful in 3s

This commit is contained in:
Sergey Karmanov 2023-08-25 01:26:07 +03:00
parent 02459d03f8
commit bc540909ed
Signed by: serega404
GPG Key ID: B6AD49C8C835460C
3 changed files with 5 additions and 2 deletions

View File

@ -18,11 +18,13 @@ public class MainController : ControllerBase
_publicDataService = publicDataService; _publicDataService = publicDataService;
} }
[HttpGet("GetAllCity")]
public async Task<IEnumerable<City>> GetAllCity() public async Task<IEnumerable<City>> GetAllCity()
{ {
return await _publicDataService.GetAllCity(); return await _publicDataService.GetAllCity();
} }
[HttpGet("GetAllMoviesInCity/{cityName}")]
public async Task<IEnumerable<Film>> GetAllMoviesInCityWithPuskinCard(string cityName) public async Task<IEnumerable<Film>> GetAllMoviesInCityWithPuskinCard(string cityName)
{ {
return await _publicDataService.GetAllFilmsInCity(cityName); return await _publicDataService.GetAllFilmsInCity(cityName);

View File

@ -21,7 +21,7 @@ builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(c => builder.Services.AddSwaggerGen(c =>
{ {
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "ApiDocumentation.xml")); c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "ApiDocumentation.xml"));
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Sistema Backend", Version = "v1" }); c.SwaggerDoc("v1", new OpenApiInfo { Title = "Ficha Backend", Version = "v1" });
}); });
// Add services to the container. // Add services to the container.

View File

@ -16,7 +16,8 @@
"launchUrl": "swagger", "launchUrl": "swagger",
"applicationUrl": "http://localhost:5242", "applicationUrl": "http://localhost:5242",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development",
"CONNECTION_STRING": "sss"
} }
}, },
"https": { "https": {