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
1 answer

SonarQube Vulnerability

I am new to using SonarQube and I am trying to fix some vulnerabilities but not sure how.I also attached the image showing the sonarQube issue. My hunch tells me I need to validate the selectedFileName parameter somehow. Your thoughts and ideas are…
0
votes
3 answers

DocuSign C# WebApi Error: 'Unexpected PEM type'

Using the VS2019 Docusign Extension. I chose WebAPI and JWT Authentication. A sample project was generated. I inserted one line of code to call in the sample WeatherForecastController's Get method: JWTAuth.AuthenticateWithJWT(); All of the expected…
0
votes
0 answers

ASP.NET Web API How to send multiple POST requests one by one in a single controller method?

I have a collection of objects. How to send each object from this collection in a separate post request in a controller method, so that they are sent one by one and only after all requests are sent, method execution is finished ?
0
votes
1 answer

Static Classes in Webapis

I saw a code that is used in webapis .net core having. Since this class is created at one time. So how we can guarantee that multiple calls are isolated. Is this right approach. What are the problems here?. Because of one api web request GetLocation…
user641812
  • 335
  • 5
  • 19
0
votes
0 answers

Error while requesting postAsync in the client which is consuming web api post method

This is the method where I am requesting post request but I am getting following error Basically I am consuming post method in the client side code ** error ** System.AggregateException HResult=0x80131500 Message=One or more…
0
votes
1 answer

WEB API - large byte array issue

I am trying to upload large CSV files via my WEB API. Now this has worked correctly till i was uploading file with size 350 MB. Now i have got one file with size 400 MB which is not getting uploaded via my API. It looks like byte array which i am…
omkar patade
  • 1,442
  • 9
  • 34
  • 66
0
votes
0 answers

HttpClient doesn't send a response

This is the code I have so far: [HttpGet] [Route("api/search-music")] public async Task> GetSongs([FromUri] string searchTerm) { var token = await…
user237
  • 41
  • 3
0
votes
1 answer

How To Use ActionFilters in OwinSelfHost

I use microsoft.owin to self host WebApi in ConsoleApplication but the ActionFilters Doesnt Fire in app . here is my actionFilter : public class FilterA : Attribute, IActionFilter { public void OnActionExecuted(ActionExecutedContext…
Sign
  • 113
  • 8
0
votes
2 answers

Is it possible to enable Managed Identity between Azure function and Azure Web API?

I am currently using Basic authentication between Azure Function and Web API. This is not secure, hence I was searching for an alternative and found the managed identity feature in Azure. However, I do not see this feature can be enabled between Web…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
0
votes
2 answers

Receiving a 405 HTTP Response from Web API when posting an array of objects (.Net Core 5)

I have a .Net Core 5 console app running on Linux (Debian 10) on an Orange Pi. I am trying to post some JSON to a Web API (also written in .Net Core 5 and hosted on Azure App Service) The API has two HTTPPOST endpoints - one to receive a single…
Fabricio Rodriguez
  • 3,769
  • 11
  • 48
  • 101
0
votes
2 answers

Click event for 3rd party custom elements without removing existing event handlers

I have included a third party custom tag, and loading one external js file, the js file is appending few more elements to it. I tried to bind a click event for the element. But not working.