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
-
0
votes1
answer70
viewsGood practices on a GET request (Laravel API)
Hello, I have a table with user login data and this table has relation with several other tables (FK). I’m doing an API using Laravel, but a question has arisen. If I do a GET in the Login table,…
-
0
votes0
answers631
viewsSpring Data jpa save() method does not work, returning an object with nullid
Personal I have Rest Api developed with Spring, Hibernate and springboot, I am with a problem when making a post call to persist the data of a particular client, does not generate any error and also…
-
0
votes1
answer1142
viewsHow to fix this Json error
I’m collecting data from an Api that retrieves the information in a Json dictionary to play on an appweb so the server gives me this error how can I fix it? Mistake you’re making: Traceback (most…
-
0
votes1
answer958
viewsCalling the API with Httpclient - POST
It’s the first time I’ve developed something like this, so I don’t really know what could be wrong. I’m making a call to an API with the HttpClient, thus: private string autenticar() { try { using…
-
0
votes0
answers1197
viewsProperty does not exist on this Collection instance
From what I’ve researched, it could be something related to the fact that you’re in a relationship 1:N, hasMany > belongsTo, but I don’t know what I have to do. I’m developing a API in Laravel…
-
0
votes0
answers48
viewsError: Server returned HTTP code: 404
Good personal day I am trying to connect the Google Earth Engine API on my server, however I am encountering the following error. Error: Server returned HTTP code: 404 at…
-
0
votes1
answer630
viewsPython - Json : Keyerror
I’m making the call in a Mailchimp API in which I list the fields to insert into my DB. In the JSON provided by the documentation, the following fields appear: { "automations": [ { "id":…
-
0
votes1
answer234
viewsForeach with table
I am creating a website that aims to show the games that are happening in the world in real time. I’m trying to make a go for the rows of the tables to be created "alone" according to the amount of…
-
0
votes1
answer59
viewsProblems with requests in Angular
Good afternoon guys, I’m starting a new internship and already a few days I’m stuck on a task that I can not understand the failure, I must make a registration form that communicates with an API…
-
0
votes1
answer3418
viewsRequest API with Javascript
I am making a web application in which the goal will be to use an API to only list some information (GET) and for this I would like to use only Java and html. The API is this:…
-
0
votes0
answers554
viewsRequest being Barred by CORS policy
I’m trying to build my Front End using the Icinga API, but I’m constantly encountering the following error: Access to Xmlhttprequest at…
-
0
votes1
answer469
viewsError API Login Facebook with PHP
Good afternoon, I’m finishing the login screen with PHP using Facebook API, at first I managed to click the button I created and he already asked me to free access on Facebook, this way I already…
-
0
votes1
answer223
viewsInsert object data by API into Database
I receive an object with the front data, and in the api ta so the middleware: let no = require('../controllers/InsertNo') let insertNo = (req, res, next) => { dados = [] dados = req.body || ''…
-
0
votes1
answer161
viewsThe server does not return any response when accessing the route
[SOLUTION] It was necessary for me to configure the Postman Authorization tab and select the Type Bearer Token option and pass the token When trying to access a route in my API using the POST method…
-
0
votes1
answer66
viewsMicrosoft Faceid - Instantiating Faceclient
Hello, I am developing an application using the Microsoft cognitive services in specific Faceid, however I have a problem in the library startup, I took this code in the Microsoft site itself:…
-
0
votes2
answers539
viewsIncomplete Whatsapp API message
Good afternoon, I am developing a website and in it has a button to share a message to a certain contact, the problem is that this message is appearing incomplete. I used the Inspect Element on the…
-
0
votes1
answer40
viewsI have an error trying to consume an API, via js fExpected BEGIN_OBJECT but was BEGIN_ARRAY
I’m trying this error because I’m picking up (from an api) a json, does anyone help me how to solve? I’m a beginner in JSF. This is my code to retrieve the data @Named @ViewScoped public class…
-
0
votes0
answers36
viewsError returning API when running in parallel - C#
Hello, I’m having doubts as to which solution I could apply to the following problem: I built an API that when called makes several calls in some databases and after composing and concatenating the…
-
0
votes0
answers58
viewsAngular API folder (how to mount this project?)
I took this project from a tutorial. The porblema is that it does not clarify where I have to put the folder "api" inside the Angular CLI project is giving error and the sql connection does not…
-
0
votes1
answer1055
viewsHow do I connect my RN app to a local api consuming the data in post?
Good morning guys, I’m stuck since yesterday and need help. I can’t connect the app I’m developing the api that is on my pc. 1° Error 404 2° I don’t know if I’m making the request the right way ( My…
-
0
votes0
answers74
viewsGoogle Sign In login does not work on the Edge and Opera browsers, plus Google Chrome and Mozilla works
Hello guys this is the error I get when I click the Google Login button in the Opera and Edge browsers. The stranger that errors do not appear in Mozilla and Google Chrome, Chrome and Mozilla log…
-
0
votes1
answer120
viewsOpen API 3.0 Swagger Hub
Good afternoon, I’m experiencing 2 Query strings in paths are not allowed errors in Swagger. Does anyone know any way to solve ? openapi: 3.0.0 servers: - url:…
-
0
votes1
answer151
viewsI need to take data from the database and display in JSON but gives error
I am using SLIM PHP to develop an API. The class that takes information from the database to display in JSON does not work! I access this local host, which I created: api/communications/general The…
-
0
votes0
answers1348
viewsAngular: CORS error when making http GET request
I need to receive a list of questions from my API and store in an Array in my angular component, I’ve done it several times in other projects and it always worked out that way, only this time there…
-
0
votes0
answers185
viewsDo not create table in API, use the one I have
I made an api on nodejs that the models is: 'use strict'; module.exports = (sequelize, DataTypes) => { const RESP_CC = sequelize.define('RESP_CC', { RCC_RESP: { type: DataTypes.STRING(6),…
-
0
votes1
answer296
viewsForeach inside foreach with PHP
I searched here on the site and did not find something that could help me in my case, I have a foreach where I take the data from the Deezer API and have another that takes the data from the YOUTUBE…
-
0
votes1
answer46
viewsJSON does not show up when I re-file
I am developing a PHP API with Slim Framework, but when I require the class general it should make a query in the database and return me the data of this table in JSON. This is the connection class…
-
0
votes1
answer469
viewsSend special character in Request body via Httprequest in Delphi XE2?
I am consuming an API (POST), via Delphi for sending NF-e XML. I am using Httprequest. In the body of the request (body) I must pass the xml as follows: xml= But the issuer’s social reason (xName)…
-
0
votes1
answer88
viewsHow to read the contents of a file in awsS3 with golang
I’m trying to create an API in golang This will return the read data from a file in AWS (S3) For example, in c# I do this way to read the data: GetObjectRequest request = new GetObjectRequest{…
-
0
votes1
answer74
viewsApi payment Boletofácil in php
I’m putting together a pay-as-you-go panel. the system asks me to generate a payment request url:…
-
0
votes0
answers40
viewsAdd dollar sign and complete value that was consumed by an API
I have following problem my page, I would like to show up R$ and that the amount was completed. I have the following HTML: <!-- <INICIO CARDS> --> <div class="primeira-card">…
-
0
votes1
answer76
viewsConfigure Docker api to accept remote calls
I’m trying to set up the Docker api to accept remote calls. I modified the file /etc/sysconfig/docker as follows : # /etc/sysconfig/docker # Modify these options if you want to change the way the…
-
0
votes1
answer53
viewsjson manipulation via command line
I’m using the jq to manipulate json via command line. Having as input a json obtained via gitlab api: [ { "id": 001, "description": "Uma descrição teste", "ssh_url_to_repo":…
-
0
votes1
answer644
viewsjava.net.Bindexception: Address already in use: bind
How are you guys? So I have a problem running my WS, I developed in java, at the time of starting it returns me this error along with: at sun.nio.ch.Net.bind0(Native Method) at…
-
0
votes2
answers163
viewsHow to make an ASP.NET Core Post API without using MVC?
I don’t work with ASP.NET Core Apis until I need it for a project written in C#. So I created with a standard project, with the following controller: [Route("api/[controller]")] [ApiController]…
-
0
votes1
answer629
viewsLimit JSON requests made in an API
I am creating a mini API to make queries on json using ajax, and I’m facing some security issues. The API is already ready and is returning the data correctly. The problem is in the file that makes…
-
0
votes1
answer264
viewsRun PHP function after reCAPTCHA validation
I am working on a script that queries an external API that returns the data in json, I am making the consultation using ajax, but I’m facing some security issues. The query works perfectly, I just…
-
0
votes1
answer42
views -
0
votes0
answers49
viewsHow to retrieve information from one httpOptions in another Angular component?
I basically have a component user-login-component and in it I have the following function:: userLogin() { this.restApi.auth(this.userDetails).subscribe(dados => { var headers_object = new…
-
0
votes1
answer74
viewsError in APEX_APPLICATION.G_F01 - ORACLE APEX
I have a problem with this script below: I have a checkbox on my page ( not in report, on the same page, a page item) and I would like the same when clicking and pressing a Ubmit button to perform…
-
0
votes1
answer204
viewsForm value API Request - Javascript Axios - Ajax
I am trying to enter a value in the form and if the value is equal to the login string of the api return me the login property and show in HTML. Html do form e do button <input id="procurar"…
-
0
votes1
answer116
viewsAccess Poke api via java eclipse
I would like to create a java program (via eclipse), which can read a URL referring to the Pokeapi site, to 'access' the site and write all the JSON present in the URL. However, my next problem: I…
-
0
votes0
answers229
viewsapi google images
Community, I’m having problems using the google search api (images), where it does not return me the possible results, for example, I do a search related to the car and it returns me images that are…
-
0
votes0
answers190
viewsParse error while uploading images from Xios
I’m trying to send images via POST method in Xios, but when I run the script, it gives me this error: error: { code: 500, error_id: 'server_error', description: 'Error parsing request into form…
-
0
votes1
answer318
viewsDisconnect users or authenticate them again if the server is restarted - Angular 2
I have an Angular 2 application that is consuming an API in Nodejs. This application has JWT authentication. My problem is this: When the Node server is restarted, the user is still able to navigate…
-
0
votes0
answers78
viewsHow to access my backend API
I need to access my Node backend API to send emails with information from a contact form. I hosted my app on King Host and it appears this way the point is, since I’m a bit new to Node, I don’t know…
-
0
votes0
answers67
viewsApi does not return JSON correctly
I am trying to request a list that should contain the indices 'asks' and 'bids' but I can only 'bids', I don’t know if there is a limit to the size of the request in python, I can’t handle this…
-
0
votes1
answer73
viewsSee External Restapi in Xamarinforms
I am having difficulty to perform a query in an external Tinyerp Restapi to consult and include requests via an app created in my company, some difficulty is to use json because I am new to xamrin…
-
0
votes1
answer76
viewsSpotify API: this.state.data.map is not a Function
I am trying to pass the data from the api to a child component, but always giving this error when I type the name of the singer in the input, because I want to fetch every letter typed, not just…
-
0
votes1
answer283
viewsMap function with lambda in a list of Python dictionaries
Good evening, I’m taking the data via API and turning it into a . JSON to record in a list:. Inside this info is a list of dictionaries called custom_fields, so I used map with lambda function to…