Top "Frombodyattribute" questions

Reading FromUri and FromBody at the same time

I have a new method in web api [HttpPost] public ApiResponse PushMessage( [FromUri] string x, [FromUri] string y, [FromBody] Request …

c# asp.net asp.net-web-api http-post frombodyattribute
REST API: GET request with body

I want to implement a REST API and need a body on my GET requests. (Like discussed here: HTTP GET …

.net rest asp.net-web-api http-get frombodyattribute
How can I parse this XML (without getting "Root element is missing" or "Sequence contains no elements")?

This is an offshoot from this question Why is the HttpWebRequest body val null after "crossing the Rubicon"? which was …

c# linq-to-xml frombodyattribute
Passing list of objects in Postman POST request -Body

I have this syntax in API-HTTP POST request public IHttpActionResult SyncWealthItemsForAccount([FromBody] List<IntegrationWealthItem> wealthItems, Data.EnumerationsIntegration.IntegrationType …

api http-post postman frombodyattribute
FromBody value get null

This is Asp.Net Webform application This is my POST method in my Apicontroller public void Post([FromBody]string value) { } …

c# asp.net-web-api http-post frombodyattribute
Why is my Web API controller action not deserializing child properties of child properties?

I'm sending a json payload in a PUT request to a web API controller action. The action in question has …

json asp.net-web-api frombodyattribute
How to pass DataTable via FromBody to Web API POST method (C#)

I am successfully calling a POST method in a Web API app from a Winforms client that passes some parameters …

c# winforms asp.net-web-api frombodyattribute
C# Web API POST parameter FromBody is always null

I've been scouring the web for hours and tried many different solutions also described here on StackOverflow. I know similar …

c# json http-post asp.net-web-api2 frombodyattribute