I have a Web API project that gets data from some external API calls. For now, I want to write the returned data as json to a file and place that file in a folder in my project so that the data can be read for other calls. I have to write them to a file and not store the information in memory.
I've seen some examples of using System.IO to write files, but they all reference writing the files to a local file system outside of the project.
What is the best way of doing this?
I'm using .NET Core 3.1.