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
7
votes
5 answers

Deploying dotnetcore 5 web api to iis gives 404

I have an Web API project with .NET 5 (created directly from the template of visual studio Asp.NET Core Web API), it works just fine when debugging from Visual studio, tried to deploy it to IIS server, which has the Hosting Bundle of .NET 5…
6
votes
3 answers

Async Clipboard API "ClipboardItem is not defined" - Reactjs copy image to Clipboard

I'm working on React js, I created my app with create-react-app using npm. I was trying to build a button that takes an image and writes it to the clipboard. Fourtunately I found this npm library that seems to work fine! But keeps me thinking why I…
Andres S
  • 81
  • 1
  • 1
  • 5
6
votes
3 answers

Is using CQRS with not separated services and repositories really affecting the quality of code?

I want to ask about an WEB Api architecture. My projects consists of few DDD, CQRS (no ES) microservices. Each service has Domain, Application, Infrastructure and UI layer. For this example I'll use BikeMicroservice. It has BikeController in the UI…
agajek777
  • 85
  • 1
  • 8
6
votes
1 answer

implementing Navigator.serial in Angular

I have the problem that in my Angular app the error Property 'serial' does not exist on type 'Navigator'. get. https://stackblitz.com/edit/angular-ivy-kf19n7?file=src/app/app.component.ts The app works in local mode. To fix this error I have to…
saftione
  • 61
  • 4
6
votes
1 answer

Navigator.share() doesn't work for second time

There is an example on MDN with Webshare API: https://mdn.github.io/dom-examples/web-share/ On my iOS device (iPhone 7 / iOS 14.0 / Safari) it works fine only once. For the second time it throws permission error: Error: NotAllowedError: The request…
5
votes
3 answers

Getting error can not access disposed object for builder.build() on visual studio update

I am getting error on debug session start on my dot net core API project; since I updated visual studio to latest version 17.1.1. Following is the exception detail, it is showing on console. I tried by deleting temp, bin, obj folders but nothing…
Deepti
  • 65
  • 3
5
votes
1 answer

Intersection Observer trigger when element is visible (before scrolling)

I am trying to work with the Intersection Observer API. I have a function which works in my first iteration. The basic logic is that if the user scrolls down and adds or removes items from a basket, once the basket is in view again (as it is at the…
lharby
  • 3,057
  • 5
  • 24
  • 56
5
votes
2 answers

How to pass byte array from postman

I am working on a public API where user will send byte[] in parameter. I have implemented the API method and want to do the testing for it but If I am trying in postman then not able to send the byte[]. Getting bellow error { "type":…
Arun Singh
  • 525
  • 2
  • 8
  • 20
5
votes
3 answers

Cannot implicitly convert type 'IEnumerable' to 'ActionResult>'

I am trying to get a list of entries from database. But I am getting an error. Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to…
StarLord
  • 707
  • 1
  • 8
  • 21
5
votes
1 answer

Web Serial API - Uncaught (in promise) DOMException: Failed to open serial port / required member baudRate is undefined

The code below works on my Xubuntu machine, but now I'm on Kubuntu and it isn't working anymore - it won't open the port. The Arduino IDE works fine (can write code to the board) and I'm able to select the device (Arduino Uno) in Chrome, but the…
uber
  • 4,163
  • 5
  • 26
  • 55
5
votes
1 answer

.Net Core Web API Bearer The issuer is invalid

I have written a Blazor WASM app based on the latest Microsoft template. In development mode it all works great but after publishing it to Azure App Service I randomly get a 401 unauthorised when calling the API, looking at the returned headers I…
DJIDave
  • 735
  • 5
  • 19
5
votes
3 answers

Returning data from a WEB API in a Blazor App

Consider the following two pieces of code. Both return data to a Web API Get call. Both return a list of items. Both work. The first one was taken from Visual Studio starter Blazor Wasm App. The second one was taken from an online tutorial.…
user3656651
  • 619
  • 1
  • 9
  • 25
5
votes
0 answers

How to replace createScriptProcessor with AudioWorklet using JavaScript for Chrome

I came across this post and I know it is a little old but it seems like it should work however I am trying with Chrome 80 and I think the support for createScriptProcessor has ended as I can't get this to work as it is. I'm getting nothing for the…
Ryan H
  • 105
  • 8
5
votes
0 answers

Blazor WebAssembly Standalone access multiple AAD protected APIs

I have managed to make default template work (my blazor standalone SPA should acquire tokens for several scopes from different ADApps - webAPIs; I've managed to get token only for one scope at the time even if I defined additionalScopes or…
5
votes
1 answer

SignalR Core works on localhost but not on Azure App Service

I have a client program (WPF app on .Net 4.8) and a Web API (.Net Core 3.1). I'm trying to get the two to communicate over SignalR Core. It works perfectly when both are running locally on my PC (i.e. on localhost). But as soon as I publish my API…
Fabricio Rodriguez
  • 3,769
  • 11
  • 48
  • 101