asp.net-web-api Questions
4
I have had no problem getting a json file in my Web API project using Microsoft's tutorial.
Due to some requirement I would like to be able to retrieve a yaml file. But the problem is there is no ...
Francophobe asked 14/7, 2017 at 10:39
5
Solved
I am consistenly receiving the following error when developing and authenticating locally in Visual Studio:
AuthenticationException: The remote certificate is invalid because of errors in the cert...
Moisesmoishe asked 18/8, 2022 at 13:26
3
Solved
When I have created a ASP.NET Web API application, I have checked to enable Docker for the project, not really knowing what that does. Now, I cannot start my application, becasue when I run it, I h...
Hypochromia asked 4/10, 2021 at 19:24
7
Solved
I am trying to get a token of a dot net core 2.0 web API.
This is what I am doing:
C:\Users\danyb>curl -X POST -H 'Content-Type:application/json'^
Mehr? -d '{\"username\":\"mario\...
Concubine asked 10/6, 2018 at 13:45
10
Solved
I have an ASP.NET Core Web API and a separate React app. The Web API uses Windows Authentication. When deployed to the server, I don't have any issues, but when I try to run the app locally, I get ...
Bewitch asked 15/9, 2021 at 16:59
4
Solved
I've got an older asp.net core identity database, and I want to map a new project (a web api) to it.
Just for the test, I copied the Models folder, and the ApplicationUser file from the previous p...
Northeasterly asked 16/1, 2017 at 14:58
4
Solved
I want to do API key based authentication on a WebAPI project with Swashbuckle (swagger for .net).
I have configured swashbuckle as below:
config
.EnableSwagger(c =>
{
c.ApiKey("apiKey")
....
Ratite asked 2/5, 2016 at 5:14
11
Solved
Lately, for almost every website/API service/mobile service I deploy, when I hit any route apart from default one, I get the following error:
The resource you are looking for has been removed, had...
Fannie asked 24/6, 2016 at 18:25
9
Solved
I am using the Swashbuckle package for WebAPI and am attempting to customize the look and feel of the swagger UI default page.
I would like to customize the default swagger logo/header. I have adde...
Brendis asked 2/8, 2016 at 7:3
10
Solved
I'm using EF and generated .EDMX from it but then I only wanted it to be used for automated generation of Class Files.
I then used the Class Files to create a Entity Model and then created a DB C...
Batish asked 6/5, 2015 at 18:35
4
Solved
I am trying to send an HTTP request from my Blazor app to my ASP.NET Core API. I have breakpoints everywhere. The application gives an exception right after the action method on the API controller ...
Evidential asked 1/12, 2020 at 4:41
7
Solved
Hello I am trying to get custom validation response for my webApi using .NET Core.
Here I want to have response model like
[{
ErrorCode:
ErrorField:
ErrorMsg:
}]
I have a validator class an...
Dextroamphetamine asked 18/8, 2017 at 13:35
1
Solved
I have a simple health check test which looks like this:
public class HealthCheckEndpointTests : IClassFixture<ItemsApplicationFactory>
{
private readonly ItemsApplicationFactory _factory;
...
Jabiru asked 5/5, 2023 at 12:23
4
Solved
I have a Web API application that returns JSON to consumers who may not be using Microsoft technologies. When my controller returns an object with DateTime properties as JSON, it serializes the dat...
Gymnosophist asked 15/3, 2017 at 13:36
2
I've been having some trouble with decimal numbers in asp net core mvc. I got it to work in a regular asp net app by adding this to the web.config:
<system.web>
...
<globalization uiCu...
Numidia asked 24/9, 2019 at 14:5
3
I am trying to add OWIN JWT into webapi project using VS 2015. The reference shows Microsoft.Owin.Security.Jwt, Version=4.0.0.0 and Microsoft.IdentityModel.Tokens Version=5.3.0.0. Below is the erro...
Madelina asked 16/11, 2018 at 16:15
11
Solved
I have just installed the mvc4 rc update and I am trying to build an api application with little luck.
I am using ninject but cant get my controllers to load. I keep getting an error
Type 'Api....
Langan asked 1/6, 2012 at 11:8
5
Solved
I am trying to pass an array as query parameter in Postman.
I am calling DELETE method to delete a user from list of databases. It is expecting list of database names as array in the query parame...
Chaconne asked 3/3, 2020 at 7:4
3
OData is now supported in .NET Core and 7.2.0 was released. But can it be used with MongoDB? I have searched, but I could not find anything that says one way or the other.
EDIT:
I've found a nuge...
Backset asked 20/7, 2017 at 13:57
2
Solved
I'm using Swashbuckle (6.1.1) in a .Net 5.0 Web API. I'm still learning, but I'd like to implement a class where certain properties only are valid when 'reading' with a GET, and other properties wh...
Strangulation asked 7/4, 2021 at 18:56
3
Solved
I got an error - No action was found on the controller 'Action' that matches the request.
The url is http://localhost:37331/api/action/FindByModule/1.
The routing I used is
config.Routes.MapHtt...
Fringe asked 23/1, 2013 at 14:3
7
Solved
I have a Web API method that looks a bit like this:
[HttpPost]
public ResponseMessageResult Post(Thing thing)
{
var content = "\r";
var httpResponseMessage = Request.CreateResponse(HttpStatus...
Inexpensive asked 5/11, 2013 at 13:51
8
Solved
Well, I'm using Swagger for my API documentation and it works perfectly in localhost, the problem begins when I host it on the IIS. For somereason it just doesn't work anymore
localhost:
https://...
Pamella asked 15/6, 2020 at 21:32
10
I'm trying to implement JWT authentication on my asp.net core webAPI as simply as possible.
I don't know what i'm missing but it's always returning 401 even with the proper bearer token.
here is m...
Profitable asked 23/5, 2020 at 18:42
9
Solved
I have a project MyProject.Api with following structure:
Controllers/
- Api/
- UsersController.cs
- HomeController.cs
Startup.cs
where HomeController.cs looks like this:
namespace MyProject.Ap...
Cracksman asked 11/8, 2019 at 23:2
1 Next >
© 2022 - 2024 — McMap. All rights reserved.