Here's how I upload file my Api action : [HttpPost] public async Task<BaseListResponse<MediaStorageModel>> MediaBrand(IFormFile file, int brandId)
This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but
I use ASP.NET WEB API and I want to send an email from my application from an email created by https://www.bluehost.com/ Here is the configuration in the web
Content being returned by HttpMessageResponse is blank/empty after being explicitly set I have created a WebApi with the latest .net Framework 4.6.1 and am try
I'm developing an application using ionic , I could retrieve data from my webApi server and display them on the navigator with ionic serve but when I try to exe
I am working on localhost where angular and web api using 2 different ports that's causing issue now. I am trying to call web api c# from angu
I am creating a restful web-service using .net and Newtonsoft for serialization/deserialization. The aim is to force exceptions (preferably HTTP 400) when a re
I have a react front-end and the dotnet core web API project on the back-end. I have an endpoint on which a client can request a file using fileId from my react
I have an async controller and I am trying to call two different Async functions from it. like this public async void Approvefiles(string[] data) {
public class ExcelParserController : ApiController { [HttpGet] public IEnumerable<string> Get(string templatePath) { ExcelParser excel
I am trying to use google authentication API to have a google log-in on my web API project. Created the OAuth and I enabled the Google+ API added the Clie
I've been trying to set authorization header value for Odata client. After I instantiate the client, I do it like this: container.BuildingRequest += (sender, e
I have a web api method that returns an HttpResponseMessage containing a PDF file. The method looks something like this: HttpResponseMessage response = Request
I have WEB API developed in .net core (VS 2017). I need to deploy this api in IIS. This is the procedure I have followed. Open VS 2017, open the project -> r
I'm trying to validate a JWT issued by the Firebase Auth emulator. The following code snippet is working fine for production apps, but I can't figure out how to
I have the following EnableCors attribute on a WebApi controller class: [EnableCors(origins:"http://localhost:57280", headers: "*", methods: "*")] public class
I have a asp.net web API application hosted using OWIN. The web API application uses an external library which depends on System.Web and writes its response on
I'm using Web API model binding to parse query parameters from a URL. For example, here is a model class: public class QueryParameters { [Required] pub
Can some one confirm me that asp.net web api action filters are singleton/instance based by default? In asp.net core, I observed that it has one instance by def
I try to get OpenID Connect running... A user of my Web API managed to get an Authorization Code of a OpenID Connect Provider. How am I supposed to pass this co