Closed hartmark closed 2 years ago
minimal-api.tar.gz Attached example project
Blech folks, I've hit the same thing. I'll try to address it soon, or at least document a workaround
I'm about to push a fix, with a big assist from @Hawxy who did the research
I have this small Program.cs:
And this TestClass:
When running it complains about:
Alba was not able to find a registered formatter for content type 'application/json'. Either specify the body contents explicitly, or try registering 'services.AddMvcCore()'
Is there a better way to add the serializer settings than adding this line to Program.cs?
builder.Services.AddMvcCore();
However, the Test_Get passes but the Test_Post fails with this error now: