Skip to main content

All Questions

Tagged with
-1 votes
2 answers
1k views

How do I convert a java object toJSON format without using any external libraries or dependencies for java?

static class DataObject { private String access; private String foo; private Int age; } to {"access" : "value","foo":"value","age":&...
edward's user avatar
  • 3
0 votes
3 answers
236 views

Expected a value of type 'String', but got one of type 'List<dynamic>'

I want integrate Flutter with an ASP.NET API. the problem is when I create minimal API, the JSON I retrieved from MapGet is a string, when I try to jsondecode() it give me: Expected a value of type '...
user avatar
0 votes
1 answer
164 views

Laravel FormRequest Validation for Rest API get calls with 2 query json params not working properly

I got a Laravel FormRequest class that should validate two JSON query strings (nested objects and arrays) on a GET route on my JSON Rest API. I pick up the json query strings, decode them to php ...
MikkeyDevelop's user avatar
0 votes
3 answers
910 views

How fetch a json query response from an api in python using requests library?

I want to pass a json query as an argument in the requests.get method in python and get the query based response from the url. query_params = { "query": { "exists": { &...
Rumi's user avatar
  • 52
0 votes
1 answer
24 views

Angular2- Can't call an API with a service in Angular

[Trying to call this API file in Angular through a service. I was able to call a local JSON file before with ease but this one is not working.The second image is the table I want to setup for the data ...
celtics4life's user avatar
0 votes
1 answer
129 views

Search API Privileges in Coveo

I am trying to use Coveo Search API in my project. I generated the Api key from the admin console page of Coveo. But when I send a query request with the API key, I receive a response with status OK ...
Pankaj Chowdhury's user avatar
0 votes
1 answer
31 views

Loop through JSON array from API Retrofit

I'm having problem with parsing my JSON Array from an API call. The response from the API look like this { "SUCCESS": [ { "user_id": "susan", "...
Hiraeths's user avatar
  • 390
0 votes
1 answer
502 views

How to serve JSON file via React without NodeJS?

I am using React without NodeJS. I created it using npx create-react-app my-app I want to serve a static JSON file or its content (I already have the file in the project) via a link so that it can be ...
holydragon's user avatar
  • 6,570
-1 votes
1 answer
138 views

How can I retrieve the 'id' key from an object in an API endpoint containing an array, in order to update data using the PUT method in React?

So I had to use PUT method in react to update a piece of data inside an API. I have the endpoint which leads me here: { "pagination": { "sortDirection": "...
Sharad Singh's user avatar
1 vote
1 answer
179 views

How to use import Geopackage data to my Django RESTful API?

I want to create a full-stack web application to let users query parks and greenspace in the UK, something like this: https://www.barnet.gov.uk/directories/parks. I want to build a Django RESTful API ...
jethro-dev's user avatar
1 vote
1 answer
83 views

How can I fix the issue of my Flutter app not showing API data?

This is a shopping app in Flutter and I create a controller, model, bindings and provider for fetching and showing API data in application. this is the controller: class ShopController extends ...
Mehedi Hasan Sumon's user avatar
0 votes
1 answer
25 views

When use post, when use get

I have a doubt, I have an API in which I will pass a JSON to get data referring to a request. So is it necessary to use the ResquestBody, in this case, do I use GET or POST?
Mateus Bodanese's user avatar
0 votes
1 answer
67 views

having a error with an api in web scrapping

i was web scrapping a website and the website had a hidden api to web scrape from so when i web scraped the api it returns to me this error and it doesn't give me the data that it have. code": &...
Bluffcandle's user avatar
-1 votes
1 answer
145 views

Login in Javascript without a backend server

How can I fetch and send data without a backend server? I have taken on as a project to create a login with JavaScript. Does it make sense to create my own JSON file? Where do I store data with using ...
Emirhan Hans's user avatar

15 30 50 per page
1
2 3 4 5
660