About 2,380,000 results
Open links in new tab
  1. c# - 405 method not allowed Web API - Stack Overflow

    Mar 30, 2013 · Explore solutions for resolving the "405 Method Not Allowed" error in Web API, including troubleshooting tips and common causes of this issue.

  2. c# - How to extract custom header value in Web API message …

    May 24, 2017 · How to extract custom header value in Web API message handler? Asked 12 years, 10 months ago Modified 3 years, 2 months ago Viewed 314k times

  3. c# - ASP.NET Core 8 Web API : how to add versioning? - Stack …

    Nov 22, 2023 · I'm creating a new ASP.NET Core 8 Web API. In my previous projects with .NET 6 or .NET 7, I can use:

  4. c# - How to return a file using Web API? - Stack Overflow

    I am using ASP.NET Web API. I want to download a PDF with C# from the API (that the API generates). Can I just have the API return a byte[]? and for the C# application can I just do: …

  5. 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, 7 months ago Modified 2 years, 2 months ago Viewed 474k times

  6. c# - What exactly is the difference between Web API and REST API …

    ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal …

  7. c# - Best practice for passing enum params in Web API - Stack …

    Sep 30, 2016 · I have a RESTful Web API project, and I have 2 different Enum scenarios that I'm unsure of re best practice. Scenario 1 : Straightforward Enum Param My API method requires …

  8. c# - Single controller with multiple GET methods in ASP.NET Web …

    Feb 29, 2012 · The concept of multiple methods in a single asp.net web api controller makes it easier to have more than 1 method in code. I was able to implement following the steps in the …

  9. How to use a client certificate to authenticate and authorize in a …

    The main requirement is that a standalone process written in C# can call a Web API and be authenticated using a client certificate. The Web API in this POC is very simple and just …

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

    Jul 3, 2015 · I think the accepted answers the OP's question specifically. My answer answers the question's title "ASP.NET Web API : Correct way to return a 401/unauthorised response"