datasaur
datasaur
CC#
Created by datasaur on 2/15/2024 in #help
Replacing AzureKeyVault with Azure.Extensions.AspNetCore.Configuration.Secrets
I need to update the deprecated package
c#
Microsoft.Extensions.Configuration.AzureKeyVault
c#
Microsoft.Extensions.Configuration.AzureKeyVault
with
c#
Azure.Extensions.AspNetCore.Configuration.Secrets
c#
Azure.Extensions.AspNetCore.Configuration.Secrets
There is no official documentation available. Anyone have ideas on how to start?
6 replies
CC#
Created by datasaur on 11/12/2023 in #help
What's the different use case for choosing between API with actions vs API with read/write endpoints
For example, action
[HttpGet]
public async Task<ActionResult<IEnumerable<Game>>> GetGame()
{
if (_context.Game == null)
{
return NotFound();
}
return await _context.Game.ToListAsync();
}
[HttpGet]
public async Task<ActionResult<IEnumerable<Game>>> GetGame()
{
if (_context.Game == null)
{
return NotFound();
}
return await _context.Game.ToListAsync();
}
endpoint
routes.MapGet("/api/Game", async (GamesTestAPIContext db) =>
{
return await db.Game.ToListAsync();
})
.WithName("GetAllGames")
.Produces<List<Game>>(StatusCodes.Status200OK);
routes.MapGet("/api/Game", async (GamesTestAPIContext db) =>
{
return await db.Game.ToListAsync();
})
.WithName("GetAllGames")
.Produces<List<Game>>(StatusCodes.Status200OK);
3 replies