Most voted "api" questions
API stands for Application Programming Interface. The program’s API defines the correct way for a developer to request services from that program. Use this tag to ask about API across the board. Always prefer more specific tags, such as win-api, file-api, web-api, google-api, google-maps-api-3. There is no need to use this tag in conjunction with a more specific one. This would bring confusion and work as a metatag
Learn more…1,192 questions
Sort by count of
-
-1
votes1
answer36
viewsHow to change the color of These bars? I’m using an Excel API for Javascript
var dataRange = sheet.getRange(range); var chart = sheet.charts.add("ColumnClustered", dataRange, "Rows"); chart.axes.valueAxis.minorUnit = 0.2; // chart.axes.valueAxis.format.font. // 12% // +--+…
-
-1
votes1
answer197
viewsApi headers error with nodejs
[nodemon] restarting due to changes... [nodemon] starting `node index.js` rodando na porta 3000, Ctrl+C para parar…
-
-1
votes1
answer603
viewsNameerror: name X' is not defined - Django Rest framework
Following the tutorial for creating API with DRF, I encountered difficulties while mapping the urls. By running 'python manage.py runserver', I get the following error path('', include(loja.urls)),…
-
-1
votes1
answer50
viewsHow to leave access to my API open for consultation
I have an application built in Angular2+ and I need to leave an open route for external consultation, without having to log in to the application: Java resource…
-
-1
votes2
answers199
viewsHow to request and update a status before render
I’m making an application and was creating a Privaterouter. Since I am using a Fake API (hai-server) it generates me a token on login and I can block calls from some routes if I do not pass this…
-
-1
votes1
answer82
viewsShow button only from a specific <li> button
I am developing a web application where this green confirm button shown in the image, is only displayed when the blue edit button is clicked. These "cards" are li’s that are generated dynamically as…
-
-1
votes1
answer481
viewsHow to return data in JSON format from a Webapi . net
I’m making a call inside the API to return consumer data, but I would like to know how to return this data to the client in JSON format. My controller: [System.Web.Http.HttpGet] public async…
-
-1
votes1
answer286
viewsView data from React Native API
Hi Dev’s I’m new in RN, I’m trying to show the return of a json, but I can’t access by the handle on the screen, only in the console. export default Function Functional() { const [date, setData] =…
-
-1
votes1
answer37
viewsPicking up new information from a website and adding a new line with this information every time it is updated
hello guys I’m trying to get data from a site api(own server) and so show the new data in the application as soon as the site makes an update with new information, thus adding a new line and keeping…
-
-1
votes3
answers51
viewsHow to exit the condition loop in this register with Mongoose/Express
I was learning how to connect my API to a database using Mongodb, so I started learning how to register users and everything was going fine until I got caught up in a problem that’s keeping me from…
-
-1
votes1
answer36
viewsInsert multiple values with WEB API
How are you, my dear? Quiet? I will summarize my project to assist in understanding: I am creating a CRUD to assist me in some of the company’s tasks. I have 3 areas I use (System, Database and…
-
-1
votes1
answer166
viewsProblem raising API and making request via Postman
I’m creating an API project in dotnet core and I’m not being able to perform requests via postaman on it. Urls of attempts: "http://localhost:5050 e http://0.0.0.0:5050" "https://localhost:5001 e…
-
-1
votes1
answer198
viewsAxios does not pass data to API Asp. Net Core
I searched every corner of the network for an answer and couldn’t find one and created an application with React that calls an Asp.Net core Webapi, using Axios. It turns out that the parameters do…
-
-1
votes1
answer30
viewsPost goes as Null in the Node api
I am learning how to create a simple API with Node. The get works perfectly, but the post ends up going like null. The code goes like this const express = require('express'); const server =…
-
-1
votes2
answers559
viewsAngular 7 Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays
I am studying angular and decided to make a very simple movie search. I would like to put the elements of the film on the screen, but the return of my get has been an Object. I have broken my head…
-
-1
votes1
answer98
viewsParameter problems in API (Laravel) routes
Hello! I’m starting my studies on api Rest. In my application I can only return the employee data according to the id of the company that it belongs to, however, the api is returning the data…
-
-1
votes2
answers92
viewsDynamic consumption of REST React API
I am new in the area and know how I can do to have a dynamic consumption of the Rest api in React. Currently my query is fixed and my idea would be to take the value that the user type for query,…
-
-1
votes1
answer28
viewsReturn repeated in action on the flutter login screen
bool _login; Future<bool> login(String email, String senha) async { var response = await http.get("http://192.168.0.116:5001/usuarios/login/$email/$senha"); if(response.statusCode == 200) {…
-
-1
votes1
answer81
viewsReturn of the Curl call in PHP is not in JSON
Can anyone tell me why the data doesn’t return in a structured way? I need to get the data out of the api https://swapi.dev/api/people/ and I would like it to return in json format, but I have tried…
-
-1
votes1
answer47
viewsReact.js does not return data in the map() function
Hello, everyone. I’m a beginner in React.js and would like help with this problem: I have a service that runs some Selects on tables from an Oracle database and, with the result of these Selects,…
javascript react api maps-javascript-apiasked 3 years, 10 months ago Francisco Marcelo de Barros Ma 1 -
-1
votes1
answer108
viewsI created a C# email API using smtp google, but I can’t publish it
The API is working properly with google smtp, rescuing data from a page form and sending the email (tested by Postman and running locally), the only problem is that I am not able to publish, I have…
-
-1
votes1
answer60
viewsMinimum and Maximum Range Filter - JSON
good night. I am creating a project in Vue.JS 2x, where I re-screen a list of users from a JSON, I am consuming this JSON through a FAKE API REST, by the JSON-SERVER package. I need to create a…
-
-1
votes1
answer26
viewsProblem to request via restTemplate
Hello I am developing a . jar that consults the dollar’s quotation value, through the request for an endpoint provided by the central bank. When I request via Postman json comes correctly, but by…
-
-1
votes1
answer33
viewshow to return the result of a mutation-deletion in graphql?
I am trying to return the value of a deletion in the api, with this value returned I will be able to do a treatment for the frontend but as I am beginner in this area, I’m having difficulties I…
-
-1
votes1
answer89
viewsHow to parserar JSON from Response in Golang
Once again, I on this site. This time, I’m having a hard time parsing the API response I’m communicating with. The API in question is this one: https://api.brasil.io/v1/dataset/covid19/caso/data/?…
-
-1
votes1
answer282
viewsFailed to run Goal org.springframework.boot:spring-boot-Maven-plugin:2.4.3:run (default-cli)
I have the following error in developing an application using the following tools: When running mvn spring-boot:run, it shows the error Failed to execute Goal…
-
-1
votes1
answer33
viewsRepetition with Json in JS
Hello, I am new to programming and am learning to use JSON with JS. This is the JSON I’m using: { "USD": { "code": "USD", "codein": "BRL", "name": "Dólar Comercial", "high": "5.564", "low":…
-
-1
votes1
answer190
viewsAngular - Error: Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays
Error: Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays. I have this Javascript backend that is running on port 3000…
-
-1
votes1
answer12
viewsQuestions about webhooks: how to manipulate data that comes instantly?
I can get the data I want through a webhook, but I want to know how to manipulate this data that comes to me with file_put_contents or even save bd. The way I’m doing I can’t save to txt file…
-
-1
votes1
answer34
viewsInterrupt the POST Django
I am developing a customer registration project/ addresses/ products, and now I am doing the inventory part (list which products certain clients hired), and I put to send the customer ID and…
-
-1
votes1
answer86
viewsHow to expect an HTTP request to end at Angular 5
I am creating a method that makes an HTTPSERVICE request in my API but I need to finish this request before continuing the rest of my Method, as I could force Angular to wait for the end of my…
-
-1
votes1
answer104
viewsHow to create automatic messages by Discord bot with constant updates? (python api)
import discord import TOKEN_value import memes client = discord.Client() TOKEN = TOKEN_value.token() memes_ON = False @client.event async def on_ready(): print('BOT HAS BEEN CONNECTED.')…
-
-1
votes0
answers7
viewsHow to get token via test with jest
I’ve been having trouble finding a solution when developing automated testing with Facebook jest when it comes to getting token to test authentication. With this code does not return the token. But…
-
-1
votes1
answer60
viewsError when serializing JSON in C#, apparently the API returns different structures depending on the object’s completion
I’m having problems returning a third party API (I don’t have access to the code) that I’m consuming, more specifically in the section below: var result = client.SendAsync(request).Result; var…
-
-1
votes0
answers20
viewsPossible Unhandled Promise Rejection (id: 0): Syntaxerror: JSON Parse error: Unrecognized token '<'
I’m developing an app and I need to log in. I have an API on two different servers. a return me: Possible Unhandled Promise Rejection (id: 0): SyntaxError: JSON Parse error: Unrecognized token…
-
-1
votes0
answers7
viewsDoubts about route nomenclatures REST
Good night, I am developing a system for a clinic in my region, and I was left with doubts about the names of the routes using the REST standard (new for me). I need to assign a professional…
-
-1
votes0
answers19
viewsHow to search two req.query array referencing only one field in the nodejs api, in which way the code uses the second assignment?
By assigning two req.query to the same filter field for the array, it only takes the second, how can I use both req.query using ranges as search ? exe: req.query.competencia_initial = '201901'…
-
-1
votes0
answers20
views -
-2
votes1
answer60
viewsWeb service that generates graphic image
I need to find a solution to generate graphics images through the URL. Google offers an API, but will soon be retired. Does anyone know a service like Google? The goal is to send graphs in the body…
-
-2
votes1
answer145
viewsJava and JSON API
I wonder if anyone knows a good API and tutorials to create, edit, write and read JSON files in Java. I’ve been researching for some time and so far I haven’t found.
-
-2
votes1
answer333
viewsREST API endpoint standard
I’m creating an application similar to Twitter using Laravel and React, where the database has tables: Post, User, Relation, Mention and Repost. On the 'Timeline' screen of the application will be…
-
-2
votes1
answer54
viewsPHP returning json as string
I’m returning this one JSON using PHP but the object genre and cast is being returned as string { "id":"5", "title":"A Era do Gelo", "year":"2002", "age":"0", "time":"81", "genre":"[{\"id\": 16,…
-
-2
votes1
answer1174
viewsFACEBOOK API - APPLICATION DOMAIN
I’m trying to use the Facebook API to log in. Offline is working, but when I put it online I have the following problem: Here’s my basic app settings:…
-
-2
votes1
answer113
views -
-2
votes1
answer79
viewsJSON Spacing Key, "." and Main Letter
Hello people, I would like to know how I can get the values of HP, Sp. Attack and Sp. Defense in Javascript?? the values below work but the quoted ones do not =[…
-
-2
votes1
answer14
viewsWill using only 1 endpoint overload my API?
If I only use 1 endpoint to make all requests in my API. Using switch case to separate the functions. Whereas my API is accessed in a matter of approximately 1000x to 2000x per minute. The fact that…
-
-2
votes0
answers15
viewsHow to use the method through scripting apps?
I’m trying to make a change to the API through the put method however it doesn’t seem to be working as it doesn’t change the API, I don’t know but what to test, I exhausted my knowledge. Follows the…
-
-2
votes0
answers13
viewsAutomatic JWT authentication with onClick function
I am creating a web service to consume an api and facilitate scheduling events on google Calendar. To access this data it is necessary that the user uses a JWT token to be able to request the data…
-
-2
votes1
answer210
viewsList all data of an API in numerical list (Array)
I have this Array: [tracks] => Array ( [data] => Array ( [0] => Array ( [title] => Amiga Da Minha Mulher [artist] => Array ( [name] => Seu Jorge ) ) [1] => Array ( [title] =>…
-
-2
votes1
answer88
viewsReturn of attributes in Model Laravel
I have an application where subcategories are associated with a category. In the Subcategory Model the relationship between both is performed and the category name is returned through getattribute,…