How to POST both JSON and XML data at same time using body- form data in .NET core Web API? any sample example ?
Loading
How to POST both JSON and XML data at same time using body- form data in .NET core Web API? any sample example ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Sep 18, 2021, 6:50 PM
you can design the API to accept both types as shown below but HTTP doesn't allow 2 content types at the same time, so you will have to make 2 requests.
Farhan AhmedPosted Sep 18, 2021, 6:05 PM