Relative Content

Tag Archive for c#visual-studio-2022webapi

Writing Keys on Web API C# on Visual Studio 2022

This seems to be simple and should be common but I’m not familiar with Visual Studio 2022, I’ve created a Web API, and this API needs some keys that usually I just write on the web.config/app.config as keys and retrieve it on the code through configuration manager. What I have right now is appsettings.json which I’m not familiar. I don’t know how to write my keys here and retrieve on my code so I can use them. Maybe someone could guide me on how to work on this.