
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 …
How to return a file (FileContentResult) in ASP.NET WebAPI
How to return a file (FileContentResult) in ASP.NET WebAPI Asked 11 years, 2 months ago Modified 3 years, 5 months ago Viewed 470k times
Newest 'asp.net-web-api' Questions - Stack Overflow
Dec 10, 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.
How to add custom header to ASP.NET Core Web API response
I am porting my API from Web API 2 to ASP.NET Core Web API. I used to be able to add a custom header in the following manner: HttpResponseMessage response = new …
How to pass multiple parameters to a get method in ASP.NET Core
Mar 29, 2016 · How can I pass in multiple parameters to Get methods in an MVC 6 controller. For example I want to be able to have something like the following. [Route ("api/ [controller]")] public …
Get data from external API with a asp.net core API
I'm learning to create APIs using ASP.NET core, in this I came up with a problem, I'm trying to execute a request for an external API using my API, but I do not know how to execute the request and ...
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
Single controller with multiple GET methods in ASP.NET Web API
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 above solutions …
ASP.NET core JWT authentication always throwing 401 unauthorized
May 23, 2020 · I'm trying to implement JWT authentication on my asp.net core webAPI as simply as possible. I don't know what i'm missing but it's always returning 401 even with the proper bearer token.
How to add and get Header values in WebApi - Stack Overflow
Apr 21, 2015 · I need to create a POST method in WebApi so I can send data from application to WebApi method. I'm not able to get header value. Here I have added header values in the …