Questions tagged [webapi]

Questions related to web browser's Web APIs specification. Web APIs is a set of numerous different APIs related to programmatically using web browser with your JavaScript code. For example the visual web page rendered is represented as and controlled by Document Object Model (DOM), which itself is a Web API. Or when using console.debug() function to log messages to the browser's console, you are using Console API.

Questions related to web browser's Web APIs specification.

Web APIs is a set of numerous different APIs related to programmatically controlling the functions of a web page that is run in the web browser with JavaScript code.

For example the visual web page rendered is represented as and controlled by Document Object Model (DOM), which itself is a Web API. Or when using console.debug() function to log messages to the browser's console, you are using Console API.

If you are new to Web APIs, you can read: Introduction to web APIs

1984 questions
4
votes
1 answer

how to read excel file in memory (without saving it in disk) and return its content dotnet core

Im working on a webApi using dotnet core that takes the excel file from IFormFile and reads its content.Iam following the article https://levelup.gitconnected.com/reading-an-excel-file-using-an-asp-net-core-mvc-application-2693545577db which is…
Sanam
  • 243
  • 5
  • 15
4
votes
1 answer

Where in Azure Portal are the logger.Log statements?

I have a .NET Core WebAPI app. The app is deployed on Azure as an App Service. In the code, I have enabled Application Insights like so public static IWebHost BuildWebHost(string[] args) => WebHost .CreateDefaultBuilder(args) …
4
votes
1 answer

asp.net core3.0 webapi request.body and [frombody] conflict

I need to get the body through request.body after frombody, but I haven't found a solution after testing for 2 days. I've added Request.EnableBuffering(). // PUT: api/Test/5 [HttpPut("{id}")] public async Task PutAsync(int id,…
yingshao
  • 41
  • 2
4
votes
1 answer

403 Forbidden error in Postman calling dynamics o365 web api

I am trying to call the dynamics O365 opportunity entity using web api. I registered an app in azure(same tenant) and created client secret key as well and added the same app as an application user in dynamics with system administrator privilege.…
Reshma
  • 99
  • 1
  • 2
  • 9
3
votes
2 answers

How does Javascript runtime identify setTimeout() as a WEB API?

When javascript runtime finds setTimeout() method, it sends it to Event table. How does runtime know that setTimeout() is a WEB API? Does it first look for setTimeout() method in the current context and then if not found assumes it as a WEB API?
user3760894
  • 267
  • 4
  • 13
3
votes
1 answer

How to get bearer token from Azure for protected .net core API

I'm tasked with developing a backend service for a web application. I'm using .NET Core 6 and following the Microsoft documentation. Based on this article…
3
votes
1 answer

Blazor standalone WebAssembly call secure core API on behalf of logged in user

I have a secure API app set up in AAD with couple of scopes. I also have a standalone Blazor client that I want to make requests from to my API. I have a user with access to my API scopes. My Client has delegated permissions to my API - all of the…
Palcente
  • 625
  • 2
  • 7
  • 21
3
votes
1 answer

How to get Client IP in .net core 6 web api

How can we get Client IP in .net core 6 web api. I have already implemented this in .net core 3, and 4 and never faced the problem, For some reason the code is not working in .net core 6, Instead of client IP, the code is giving Server IP. I have…
VIRIYALA NARESH
  • 187
  • 1
  • 4
  • 17
3
votes
1 answer

Why setTimeout works on Node JS?

I am hearing that setTimeout(), the Web API is not included in JavaScript quite often. So, if it is only Web API it is natural to think as it won't work anywhere except in the browser. So, why setTimeout is working in my terminal when I just run a…
3
votes
1 answer

Can't open Swagger UI outside of visual studio debug

I've created a very basic .net CORE WEB API, following a youtube guide. Everything works fine when I debug from visual studio. it opens my browser and directs me to the swagger ui site. But when I run outside visual studio, starting the exe from the…
Simon Bruun
  • 59
  • 1
  • 5
3
votes
0 answers

scrollIntoView doesn't work with behavior smooth

I'm trying to learn interSectionObserver and ScrollIntoView in javascript but ScrollIntoView works odd targetToScroll.scrollIntoView(); // works //code below does not work on chrome v99.0.4844.74 and does not work on edge 99.0.1150.39, but works on…
3
votes
1 answer

how can I set a HD screen recording using getDisplayMedia api?

I have created a screen recorder application using getDisplayMedia() API but the output video quality is not good, is there any way to configure the output video quality to get HD resolution video? I got a similar kind of question -> …
3
votes
0 answers

Can i create a mouse and keyboard simulator with the Bluetooth Web API?

I created a website that shows users a simple QWERTY keyboard, a mouse trackpad and two buttons that act as each mouse button. Now what I want: User visits https://www.mykboard.com with Computer A. User clicks a button on the page to show available…
Carlos Pinto
  • 136
  • 7
3
votes
2 answers

How to get HttpRequest from minimal api action method?

I write a minimal API project. I Want to get HttpRequest from action Method, but I didn't get HttpRequest instance: app.MapPost("api/Create", async (RequestValidationDTO request) => { try { HttpRequest httpRequest = Request. …
3
votes
1 answer

Why do I get ReferenceError: RTCPeerConnection is not defined in Next.js?

I am trying to const pc = new RTCPeerConnection() while I get ReferenceError: RTCPeerConnection is not defined. How can I overcome this error? It is not my browsers, I can run webRTC natively on them.
Hypothesis
  • 1,208
  • 3
  • 17
  • 43