Top "Asp.net-core-webapi" questions

Questions about ASP.

415 Unsupported Media Type asp.net core

Detail I am trying to post a file from Postman to the endpoint I have created. but it gives me …

c# asp.net-core-2.0 asp.net-core-webapi
Equivalent of HttpResponseException/IHttpActionResponse for .net Core webapi 2 (not mvc)

When I am reading about webapi for responding to requests and handling errors everything is based around: IHttpActionResult HttpResponseException But …

c# asp.net-core asp.net-core-webapi
How to properly integrate OData with ASP.net Core

I'm trying to create a new ASP.NET Core project with a "simple" web api using OData and EntityFramework. I …

c# asp.net-core odata asp.net-web-api-odata asp.net-core-webapi
Registering a new DelegatingHandler in ASP.NET Core Web API

I want to create a new Handler that extends DelegatingHandler to enable me to do stuff before getting as far …

c# asp.net-web-api asp.net-core asp.net-core-mvc asp.net-core-webapi
Confused with FromBody in ASP.NET Core

I have the following WEB API method, and have a SPA template with Angular: [HttpPost] public IActionResult Post([FromBody]MyViewModel …

c# angular asp.net-core asp.net-core-mvc asp.net-core-webapi
Azure AAD - The audience is invalid

I have create a webapi secured with azure active directory. I need to test this now and trying to use …

azure asp.net-web-api active-directory azure-active-directory asp.net-core-webapi
ASP.NET Core WebAPI default route not working

I've followed several examples suggesting that to set my default route in an ASP.NET Core WebAPI project, I need …

asp.net-core asp.net-core-webapi
415 (Unsupported Media Type) angular 4 Post

I am trying to access a wep api with angular 4 post method. In my service, I've added content-type of application/…

asp.net-core-webapi angular4-httpclient
ASP.NET Core Web API Logging from a Static Class

I'm logging just fine using dependency injection on my controllers, now I need to log something from a static class. …

logging asp.net-core dependency-injection asp.net-core-webapi static-classes
JWT Authentication and Swagger with .Net core 3.0

I am developing some Web Api with .Net core 3.0 and want to integrate it with SwashBuckle.Swagger. It is working …

swagger asp.net-core-webapi swashbuckle .net-core-3.0