
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.
c# - Send HTTP POST request in .NET - Stack Overflow
How can I make an HTTP POST request and send data in the body?
c# - How to extract custom header value in Web API message handler ...
May 24, 2017 · How to extract custom header value in Web API message handler? Asked 12 years, 10 months ago Modified 3 years, 1 month ago Viewed 314k times
c# - ASP.NET Core 8 Web API : how to add versioning? - Stack Overflow
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:
c# - Best practice to return errors in ASP.NET Web API - Stack Overflow
May 24, 2012 · 33 If you are using ASP.NET Web API 2, the easiest way is to use the ApiController Short-Method. This will result in a BadRequestResult.
How to use a client certificate to authenticate and authorize in a Web API
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 returns a …
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: byte[] pdf =
c# - Post byte array to Web API server using HttpClient - Stack Overflow
Aug 24, 2015 · Post byte array to Web API server using HttpClient Asked 10 years, 3 months ago Modified 1 year, 3 months ago Viewed 131k times
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"
c# - Best practice for passing enum params in Web API - Stack Overflow
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 a parameter …