About 4,420,000 results
Open links in new tab
  1. Best practice to return errors in ASP.NET Web API [closed]

    May 24, 2012 · Best practice to return errors in ASP.NET Web API [closed] Asked 13 years, 6 months ago Modified 6 months ago Viewed 779k times

  2. Newest 'asp.net-web-api' Questions - Stack Overflow

    Nov 14, 2025 · I have created a ASP.NET Core Web API app with Docker enabled just using the auto generated boilerplate code. Running on Docker on my Windows dev machine works just fine.

  3. How do I make calls to a REST API using C#? - Stack Overflow

    Mar 8, 2012 · The ASP.NET Web API has replaced the WCF Web API previously mentioned. I thought I'd post an updated answer since most of these responses are from early 2012, and this thread is …

  4. asp.net web api - Why do we have to specify FromBody and FromUri ...

    Jul 8, 2014 · When the ASP.NET Web API calls a method on a controller, it must set values for the parameters, a process called parameter binding. By default, Web API uses the following rules to bind …

  5. How to return a Json object from a C# method - Stack Overflow

    30 I am trying to fix an ASP.NET WebAPI method where a Json response is required. However it's returning a string instead. Initially it was returing XML format, but I've added this line to the mvc code …

  6. How to pass json POST data to Web API method as an object?

    351 ASP.NET MVC4 Web API application defines post method to save customer. Customer is passed in json format in POST request body. Customer parameter in post method contains null values for …

  7. How to return HTTP 500 from ASP.NET Core RC2 Web Api?

    Jun 13, 2016 · How to return HTTP 500 from ASP.NET Core RC2 Web Api? Asked 9 years, 6 months ago Modified 2 years, 1 month ago Viewed 473k times

  8. 405 method not allowed Web API - Stack Overflow

    Mar 30, 2013 · I had CORS enabled and working as long as the POST returned void (ASP.NET 4.0 - WEBAPI 1). When I tried to return a HttpResponseMessage, I started getting the HTTP 405 …

  9. How to read values from the querystring with ASP.NET Core?

    298 I'm building one RESTful API using ASP.NET Core MVC and I want to use querystring parameters to specify filtering and paging on a resource that returns a collection. In that case, I need to read the …

  10. c# - ASP.NET Web API : Correct way to return a 401/unauthorised ...

    Jul 3, 2015 · ASP.NET Web API : Correct way to return a 401/unauthorised response Asked 10 years, 5 months ago Modified 2 years, 11 months ago Viewed 285k times