Небольшой фикс
This commit is contained in:
parent
02459d03f8
commit
bc540909ed
@ -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);
|
||||||
|
@ -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.
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user