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

Getting image path for API post request - Swift, iOS

I am using an API post request in order to get a modified image. curl \ -F 'image=@/path/to/your/file.jpg' \ -H 'api-key:[myKey]' \ [api url] It worked fine directly on my Mac's terminal using: curl \ -F…
Nico
  • 181
  • 1
  • 4
0
votes
1 answer

How to allow Odata options to be applied to cosmos db collection and return filtered records

I have a requirement to implement paging on api. Am doing below to enable OData querying on api, but it filters after fetching all records from cosmos db, but I would like to fetch filtered records from cosmos db. How to convert Odata query options…
Deepak Kothari
  • 1,601
  • 24
  • 31
0
votes
1 answer

.net core 3.1 web api hosted on nginx works with http POST, but not with HTTPS

This is my first .net core app. It is simple web API that receives POST updates formatted as JSON, parses it and stores into DB. When tested in VS, it works correctly for both http and https requests. I decided to host in on Linux machine (Debian)…
dotokija
  • 1,002
  • 7
  • 10
0
votes
1 answer

.Net Framework Web API - Custom Json serialization for requests and responses

I am trying to find an example of how to customize my .Net Framework Web API, to handle requests and responses with a custom serialization library instead of the built-in Newtonsoft library. So when request arrives to one of my controllers with…
0
votes
1 answer

Does Docebo web api support Swagger?

I am wondering if Docebo LMS (https://www.docebo.com/) web api supports Swagger or not. I contacted their technical support. But they don't know what I talked about.
Yang You
  • 2,618
  • 1
  • 25
  • 32
0
votes
2 answers

Unable to set property 'Property name' of undefined or null reference

Browser IE11 AngularJS Api returning data and is being loaded to custom objects like apiData.map(function(item){ return { id: item.Id, name: item.Name, types:{} }); This 'types' property is being populated as following by init…
0
votes
1 answer

Problem Send a file as a list to a method in WebApi

I have an Input tag like this: After the user clicks the bAddImage button, if the user has selected a file, this…
0
votes
0 answers

While calling to Web API endpoint service is throwing 524 on production server but on local throwing TaskCancelation exception

I read about the 524 error code but I am curious to know the same code work differently in two environments. While testing on my local server it is throwing me TaskCanceledException as expected. But the same thing behaves differently on my…
Ravindra Sinare
  • 675
  • 1
  • 9
  • 25
0
votes
1 answer

Read XML result from SQL using FOR XML in Web API C#

I have a stored procedure that returns a table in XML format.At the end of the script I have for xml auto I tried to read it as below var data = db.Database.SqlQuery("exec spGetDataInXML").ToString(); But when I debug it data variable…
Jared
  • 1
  • 1
0
votes
1 answer

How can I exchange data between database contexts?

I am making a web api for a google classroom-type system with classes and accounts and I have database contexts for classes and accounts separately. What I want to do is access the data from the account context in my class controller. Is there any…
Andrew C
  • 137
  • 2
  • 10
0
votes
0 answers

Kotlin Json Parse

Why does my Json parse fail with following error? JSON from Web API [{"CUSTJOBID":1,"JOBDT":"2020-11-18T00:00:00","JobFromAdd":"TT4 6PX","JobToAdd":"GH8 7HH"}] KOTLIN CODE to PASRSE val jsonarray = JSONArray(response.toString()) App error of type…
0
votes
1 answer

c# call Webapi with Authentication credentials were not provided problem but Postman works fine

using (WebClient wc = new WebClient()) { wc.Headers.Add("Content-Type", "application/json"); wc.Headers.Add("Authorization", "Token 12345678"); wc.Encoding = Encoding.UTF8; var jsonRespStr =…
0
votes
1 answer

Http Request Exception - A connection with the server could not be established - UWP Web API

Can anyone tell me how to solve this problem? This is my main page cs file: MainPage.cs public MainPage() { InitializeComponent(); GetAccount(); } async void GetAccount() { …
no name
  • 1
  • 1
0
votes
1 answer

EntityFramework calling scaler function throws Must declare the scalar variable

I have scaler function countAbsence that takes employeeID as input I call it as below int count = db.Database.SqlQuery("SELECT [dbo].[countAbsence](@employeeID)", employeeID).FirstOrDefault(); But I get below…
r_via
  • 15
  • 5
0
votes
1 answer

What is the correct response for a GET request to anempty OData Navigation property

Say, for such an entity defined below, what is the correct response for GET "serviceRoot/entity(1)/nav"? Assuming entity with id 1 has valid values, but its stored key for the 'nav' reference is null.
Jia Fang
  • 47
  • 6
1 2 3
99
100