Skip to content

Instantly share code, notes, and snippets.

@crjcodes
Last active December 27, 2022 16:24
Show Gist options
  • Save crjcodes/ca2dda912dc9cde200dde57d63f1fd39 to your computer and use it in GitHub Desktop.
Save crjcodes/ca2dda912dc9cde200dde57d63f1fd39 to your computer and use it in GitHub Desktop.
Pull your own json into the app configuration
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("mockdata.json");
builder.Services.AddEndpointsApiExplorer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment