I want to update a record by calling my api endpoint using the put verb but his returns error 405 method not allowed. My api endpoint: My client c ...
I want to update a record by calling my api endpoint using the put verb but his returns error 405 method not allowed. My api endpoint: My client c ...
So the problem is that i have Blazor WebAssembly for a front-end, Making API calls through the Ocelot API Gateway but for some reason the CORS are fai ...
My code is working, but I'm looking to see if I'm doing this in the 'proper' fashion. I have a Minimal API that supports file uploads but also I neede ...
I've got a minimal API service with a MapPost: It works fine when sending a JSON with Postman: But from a C# client: var kv = new Dictionary< ...
I have wwwroot folder organized for each subdomain as below. The application is based on .NET 7.0 and want to Use StaticFiles from different folders i ...
HEAD The HTTP HEAD method requests the headers that would be returned if the HEAD request's URL was instead requested with the HTTP GET method. F ...
With minimalistic API how does MapGet automatically fill parameters from querystring? With minimalistic API the following is possible: When you ca ...
I'm trying to create API working by minimalApi service who can be accessible from public and can send GET/POST/PUT request to my Web Service with Cont ...
I'm creating web api using .net core7 minimal api. I create a function to call stored procedure which get from table in database. I'm facing a proble ...
I use .net core 7, minimal api and I would like to log POST request body. I use following code: Attribute that I use to distinguish that object is ...
This would be interesting: This would allow me to do conditional routing based and handle both branches in one middleware thingie. But it doesn't e ...
So I'm running a Linux VM (DigitalOcean Droplet) to host my ASP.NET Core Minimal API, I've got one endpoint that requires a refresh token to be suppli ...
This is a bit tricky. I have a Minimal Web API with this function: This is nice and it downloads the MP3 file that is generated when I go to https: ...
I have this code: I would expect that I could only call /User if the user is authenticated. As it turns out, if the user is not authenticated then ...
I am working on a simple Web API that uses MySQL as database. It's pretty basic: The idea is simple. This is a middleware method that writes all re ...
I am trying to implement a simple generic minimal API MediatR method mapper (inspired by this video). I ran into an issue regarding mapping my request ...
I have this: Basically, this code is just adding some HTTP context information to a (MariaDB) database. This is not simple logging but it also trig ...
Hi I am trying to implement versioning in asp.net core minimal api (net7.0). But I am seeing some url access issues with certain api versions. Hope so ...
I have a Web API with additional static web pages in different folders. The purpose of this API is to be used as default site in IIS on my server for ...
So I've been studying the documentation of.net Core Middleware and it mentions there are three types of request delegates: Run, Use and Map. I use app ...