❔ Send using http post with multiple parameters, to an endpoint defined in C# with minimal APIs
I've got an endpoint like so:
But I can't work out how to get it to receive both parameters correctly when I try to send it from C#. Here's the latest one I tried:
I know it's not really supposed to get a form thing, but I have no idea which HttpContent type I should use, and I've tried a number of them now (potentially incorrectly, idk), so I thought I'd just ask what type I should use to send to the endpoint, and how to use it.
I'm not overly familiar with http post in case you couldn't tell
.
Thanks in advance
Please ping or reply
But I can't work out how to get it to receive both parameters correctly when I try to send it from C#. Here's the latest one I tried:
I know it's not really supposed to get a form thing, but I have no idea which HttpContent type I should use, and I've tried a number of them now (potentially incorrectly, idk), so I thought I'd just ask what type I should use to send to the endpoint, and how to use it.
I'm not overly familiar with http post in case you couldn't tell
Thanks in advance
Please ping or reply