ASP.
UPDATE Thanks for all the answers. I am on a new project and it looks like I've finally got to …
c# .net asp.net-web-api json.net asp.net-web-api2Is there a way to display all enums as their string value in swagger instead of their int value? I …
c# asp.net-web-api asp.net-web-api2 swagger-ui swashbuckleI have a Web API project that is running on a server. It is supposed to return PDFs from two …
c# asp.net pdf asp.net-mvc-5 asp.net-web-api2Let's assume this is my action method public IHttpActionResult Get(int id) { var status = GetSomething(id); if (status) { return Ok(); } …
c# asp.net-web-api asp.net-web-api2I want to post this data to Web API server: public sealed class SomePostRequest { public int Id { get; set; } public …
c# asp.net-web-api asp.net-web-api2 dotnet-httpclientCurrently, my ApiControllers are returning XML as a response, but for a single method, I want to return JSON. i.…
c# asp.net-mvc asp.net-web-api asp.net-web-api2 asp.net-apicontrollerI want to make a web api that is passed 4 parameters. Here is my route: config.Routes.MapHttpRoute( name: "DefaultApi", …
asp.net-web-api2I have a Web API project that returns some product data. It negotiates the return type correctly depending on the …
c# asp.net-web-api asp.net-web-api2I am trying to create a custom filter in asp net core web api which is as below but unable …
c# asp.net-core asp.net-web-api2Until now, I had a GET method that looked like the following: protected override async Task<IHttpActionResult> GetAll(…
c# asp.net asp.net-web-api http-headers asp.net-web-api2