Top "Asp.net-core-webapi" questions

Questions about ASP.

ASP.NET Core return JSON with status code

I'm looking for the correct way to return JSON with a HTTP status code in my .NET Core Web API …

c# json asp.net-core asp.net-core-webapi
RS256 vs HS256: What's the difference?

I'm using Auth0 to handle authentication in my web app. I'm using ASP.NET Core v1.0.0 and Angular 2 rc5 and …

jwt auth0 asp.net-core-webapi
Return file in ASP.Net Core Web API

Problem I want to return a file in my ASP.Net Web API Controller, but all my approaches return the …

c# asp.net-core .net-core asp.net-core-webapi
How to return a specific status code and no contents from Controller?

I want the example controller below to return a status code 418 with no contents. Setting the status code is easy …

c# asp.net-core asp.net-core-mvc asp.net-core-webapi
How to add custom header to ASP.NET Core Web API response

I am porting my API from Web API 2 to ASP.NET Core Web API. I used to be able to …

c# asp.net-core-webapi
File upload and download in angular 4 typescript

How can I download (.exe file which is in root path) and Upload a file from Angular 4? I am new …

angular typescript asp.net-core-webapi
ASP.NET Core JWT mapping role claims to ClaimsIdentity

I want to protect ASP.NET Core Web API using JWT. Additionally, I would like to have an option of …

c# asp.net-core asp.net-core-webapi
Returning a 404 from an explicitly typed ASP.NET Core API controller (not IActionResult)

ASP.NET Core API controllers typically return explicit types (and do so by default if you create a new project), …

c# asp.net-core asp.net-core-mvc http-status-code-404 asp.net-core-webapi
Creating a proxy to another web api with Asp.net core

I'm developing an ASP.Net Core web application where I need to create a kind of "authentication proxy" to another (…

c# asp.net asp.net-core-mvc asp.net-core-webapi
The configuration file 'appsettings.json' was not found and is not optional

The Azure error is: .Net Core: Application startup exception: System.IO.FileNotFoundException: The configuration file 'appsettings.json' was not found …

azure asp.net-core azure-web-app-service .net-core asp.net-core-webapi