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

C# WebService using WebAPI and Entity for XML tutorial?

in the last two days I am trying to locate such a tutorial. There have been years since I wrote my last webservice (I am mostly an SQL coder) and it was an amsx one which I read that are now considered non-secured and there is trouble getting them…
PanosPlat
  • 940
  • 1
  • 11
  • 29
0
votes
1 answer

Sharing JWT Authentication/Authorization

Greetings programming community. Here's something that I've been looking for but at the moment I don't believe I've had a straightforward answer. Inside the same Solution I've got a JWT authentication webapi and a standard webAPi that returns random…
B33bs
  • 3
  • 3
0
votes
1 answer

POST a multiple fragment JSON using Postman with application/json header

I have the following JSON {"name":"tester1","type":"frontend"} {"name":"tester2","type":"midlleware"} {"name":"tester3","type":"backend"} When I paste the above into Postman with an application/JSON, only the 1st row/JSON will be passed to the…
0
votes
0 answers

putasynch is not successful

for some reason it gives me false in if (response.IsSuccessStatusCode) string data = JsonConvert.SerializeObject(model); StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); HttpResponseMessage…
0
votes
0 answers

Xamarin.Forms How to remove a single line from the list after id?

Sorry for my english. I added a single line delete event from listview var button = sender as Image; var training = button.BindingContext as TDiary; HttpClient client = new…
ReVoPEP
  • 29
  • 5
0
votes
0 answers

How to debug SignalR 2.x Hub

I am running SignalR 2.x in a .Net Framework 4.7 WebAPI app. I have it working to the point where my UI can connect, pass in a message and get a return message. The connection is made and an initial exchange succeeds. However, after that, any time…
Connie DeCinko
  • 802
  • 2
  • 15
  • 32
0
votes
1 answer

Authorize for all Gets on webApi NetCore

I don't know if it's possible, but, could I make something like a default policy for all my GET actions in my webApi, so they require a especific role, one for "read", "write" and "delete". Not putting a [Authorize()] in each action of a component,…
0
votes
0 answers

asp.net webapi token authentication

I having 3 existing WEB API which already has OWIN token based authentication connecting to 3 different databases (userid and pwd is different). I want to create an application which uses these 3 web APIs based on a single login. How to achieve…
leo
  • 451
  • 1
  • 3
  • 12
0
votes
1 answer

Getting client IP address in dotnet core web api ::ffff:127.0.0.1

I'm trying to get the client(caller of web api) IP address in in my dotnet core web api. I'm getting the IP address as "::ffff:127.0.0.1" tested from different client networks. With localhost getting as ": ::1" I'm using the following code inside my…
Srikanth Reddy
  • 447
  • 1
  • 8
  • 23
0
votes
0 answers

FromBody is null from remote server but working locally

I'm trying to consume a JSON file that has the following format as an example in C# API Post. NB:The only way I can consume the file is by using string parameter, because the file is not enclosed in [] brackets nor does it have "," after each…
0
votes
0 answers

How to disable window.find() to scroll parent window

i have page with iframe. this is the page:
kfir
  • 732
  • 10
  • 22
0
votes
1 answer

FS access api & React: duplicate entries

I'm trying to build a movie dashboard (something like Plex); the user selects a folder and all the movies he has in the folder show up. The use of the new File System Access API allows me to create file handlers on the fly and be able to display…
MGassend
  • 83
  • 2
  • 9
0
votes
1 answer

Serial communication via the serialPort web API

I'm doing a project in Angular and I need to make the connection to a scale through the serial input (data input and output). I'm using the serialPort web API. I have already enabled the experimental web platform features of my browser. Chrome…
0
votes
3 answers

Web API POST request object is always null

I am using .Net Core API 2.1 I have this in my Controller: [Route("Invoke")] [HttpPost] public IActionResult Invoke(Student studentDetails) { DetailsResponse objResponse; if(ModelState.IsValid) …
0
votes
1 answer

How to know what a function takes as parameter what does it return after adding a DLL file

I'm working on Web API C#, So one of my colleague have implemented a function that do some calculation that I need to use as well. He will share my the DLL file for that. I know I need to add the DLL in my project but how can I know exactly what…
Rahul
  • 81
  • 2
  • 7
1 2 3
99
100