Top "Asp.net-core-webapi" questions

Questions about ASP.

How to add Web API controller to an existing ASP.NET Core MVC?

I created a project using the default ASP.NET Core MVC template. I would like to also create a RESTful …

c# asp.net-core asp.net-core-mvc asp.net-core-webapi asp.net-core-routing
ASP.Net Core exception handling middleware

I am trying to use middleware for exception handling in my ASP.Net Core 3.0 Web API project: public class ErrorHandlingMiddleware { …

c# asp.net-core asp.net-core-webapi asp.net-core-middleware
launchSettings.json launchUrl doesn't work "api/values"

I am trying to change http://localhost:5001/api/values route but the program is stuck this url. I read this …

c# asp.net asp.net-core asp.net-core-webapi .net-core-2.2
IFormFile always return null in asp.net core 2.1

Api method is looks like below [HttpPost] public async Task<BaseListResponse<MediaStorageModel>> MediaBrand(IFormFile file, int …

c# asp.net asp.net-web-api asp.net-core asp.net-core-webapi
Read JSON post data in ASP.Net Core MVC

I've tried to find a solution for this, but all the ones coming up are for previous versions of ASP.…

c# asp.net json asp.net-core-webapi asp.net-core-middleware
ASP.NET Core CreatedAtRoute No route matches the supplied values

Using ASP.NET Core 2.0.0 Web API, I'm trying to build a controller to do a database insert. The information can …

c# asp.net-core .net-core asp.net-core-webapi asp.net-core-mvc-2.0
Debugging Swashbuckle Error - Failed to load API Definition

Is there any way to get a stack trace or inner exceptions on Swashbuckle/Swagger errors? At some point, it …

swagger asp.net-core-webapi swashbuckle asp.net-core-2.1 .net-core-2.1
ASP.NET Core 3.0 get_HostingEnvironment() Method not found in extension

Below code to replicate error for some extensions I'm trying to create in a new ASP.NET Core 3.0 API project. …

c# asp.net-core asp.net-core-webapi asp.net-core-3.0
Cant find self signed trusted certificate used by Kestrel

I have a very basic self-hosted .NET core 2.1 application with the following configuration: public class Program { public static void Main(…

asp.net-core https asp.net-core-2.0 asp.net-core-webapi kestrel-http-server
Hangfire .NET Core - Get enqueued jobs list

Is there a method in the Hangfire API to get an enqueued job (probably by a Job id or something)? …

c# background-process asp.net-core-webapi hangfire