attempting to do:
run app and check SwaggerUI for API endpoints.
error:
/pokeapi/Program.cs(50,5): warning ASP0014: Suggest using top level route registrations instead of UseEndpoints (https://aka.ms/aspnet/analyzers)
here's the line of code the compiler is contending with:
proposed approach:
// sidenote: this code took a long time to get correct in ASP/razor-pages & is the code I thought would need a fix for webapi.
problem last time was only using chatGPT when stack overflow and code on github fixed the problem in 30 minutes.
attempting to do: run app and check SwaggerUI for API endpoints.
error: /pokeapi/Program.cs(50,5): warning ASP0014: Suggest using top level route registrations instead of UseEndpoints (https://aka.ms/aspnet/analyzers)
here's the line of code the compiler is contending with:
proposed approach: // sidenote: this code took a long time to get correct in ASP/razor-pages & is the code I thought would need a fix for webapi. problem last time was only using chatGPT when stack overflow and code on github fixed the problem in 30 minutes.
possible improvements: