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
answer43
viewsJavascript which Api is this?
Could you give me a direction regarding the side menu "Polka dots" where you swap the pages for it? Would you have an Api for that? And in the bicycle part there are some points with + sign, where…
-
-1
votes2
answers106
viewsDoes web API without bank access make sense?
In which cases it makes sense to create a Web API without database access?
-
-1
votes2
answers115
viewsCreating and Consuming a REST API
Good morning, I’m trying to create an API, to do a user and password validation, to use in Xamarin. But I am in doubt, if I want to search a user x and a password x in the database I should, pass…
-
-1
votes2
answers205
viewsAPI maps display address
Today in my system I am displaying as reference point data already registered in the system based on latitude and longitude. I would like the script to find the reference provided by the maps API…
-
-1
votes2
answers228
viewsHow to pass a search parameter in the retrofit with Kotlin?
I am trying to use the Retrofit library to make HTTP requests for the API: API Star War, with the Kotlin language, however I don’t know how to correctly pass a search parameter to an API function.…
-
-1
votes1
answer45
viewsHow to get the list of Voices ids associated with a given Search party
Is there an API or method in Jasmin to get the list of Voices ids given the partyKey (preferably) or the id of a Customer party?
-
-1
votes1
answer44
viewsWoocommerce api does not connect
Good morning to all!! Guys, I installed Woocommerce on localhost and I want to study its api...I went there, generated the keys and I’m calling the api like this:…
-
-1
votes1
answer59
viewsWeb api c# - Get current path in controller
How do I get the current path of an endpoint in the controller?
-
-1
votes2
answers191
viewsAjax requests with the Fetch API keeps repeating
I make an Ajax Request with the Fetch API: function PostData() { var A1_CGC; A1_CGC = sessionStorage.getItem('cpf'); console.log(A1_CGC) var inicio, fim, A1_CGC; inicio =…
-
-1
votes1
answer86
viewsReturn a table between an initial and final date period, php + json
I’m trying to return a Dashboard table of reports between a specific date on, but when I click on search it just returns me Error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of…
-
-1
votes1
answer270
viewsHow to filter records
public Function search1(Request $request) { $data = Cliente::where( 'nome','LIKe', $request->nome . '%' 'situacao',$request->situacao . '=')->get(); return view('cliente.search', […
-
-1
votes1
answer61
viewsStarted’s Springboot Project but I can’t get Postman’s Apis
The start project but when I call in Postman nothing comes back, nor the error. It’s as if the project had not gone up! In pom.xml are the dependencies: jpa, mysql and web. I have not touched them.…
-
-1
votes1
answer707
viewsHow to use Google Maps API with Google Directions API?
Hi, I am using the Google Maps API and want to be able to click, for example, a previously created point on the map and get directions from my location to the selected point. For that I am trying to…
-
-1
votes1
answer84
viewsIs there any way to update the entire database eloquently with the Laravel(API)?
I am creating an api and I want to create a method that updates everything but not I know if eloquent has this feature. It’s because I created an app (offline) that sends me all the data at once to…
-
-1
votes1
answer65
viewsSelect items and sort objects list
I’m learning how to use the Github API and for that I took a user to use as an example. I am getting a list of objects and need to select the names of the 3 oldest items and leave them in ascending…
-
-1
votes1
answer815
viewsHow to make a POST with "Multipart/form-data" using C# in Console applications?
I’m trying to do it like this and it’s not working: var content = new MultipartFormDataContent(); httpClient.BaseAddress = new Uri(urlFinal); var fileContent = new…
-
-1
votes1
answer64
viewsHow to paginate a Json return in PHP
Hello, then, I have a request GET for an API, which returns a json, only that the records are limited to 100 per page, reaching 100 it returns a parameter "next" with the link to next page... the…
-
-1
votes1
answer26
viewsI am unable to iterate the array
I would like to popular this array with the Category object I get when I query findById. But the variable loggedUserCategories appears as an empty array in Sponse , however, I can visualize the…
-
-1
votes1
answer47
viewsSend array with internal array via CURL PHP
The following Array is sent to a API through a POST using CURL: $content = array( 'name' => $_POST['name'], // Recebe String de um <form> 'price' => $price, 'stock' =>$stock, 'link'…
-
-1
votes1
answer85
viewsconsole.log returning "Undefined" no then (fetch)
I am beginner, apparently the "code" is inside an id, n know how to capture... const url = 'https://economia.awesomeapi.com.br/json/USD-BRL/' fetch(url) .then(resposta => resposta.json())…
-
-1
votes1
answer53
viewsHow to fix this java error?
I am trying to create an Api with Spring Boot. However, even if I implement all the dependencies in the pom.xml file, the error persists. The error message is: Failed to execute Goal…
-
-1
votes1
answer35
viewsShow a fk name on the grid
This is the select of my proc select f.id ,f.nome ,f.dataNascimento ,f.cpf ,f.cidade ,c.nome from funcionarios f inner join cidade c on f.cidade = c.id and my model cidae is like this public class…
-
-1
votes1
answer14
viewsHow to create an endpoint that downloads a local file as soon as requested in Nodejs?
I have a file in my project that I need to make available for download, through an endpoint that when requested will automatically download, but I can not use any framework, only Nodejs.
-
-1
votes1
answer37
viewsRequest get method
I would like to make a request get on this api https://api-v2.blaze.com/roulette_games/recent(External api, I don’t have access to it to enable Cors), however, when I do it returns me an error…
-
-1
votes1
answer71
viewsUsing CPF generator in Postman
I am performing several registration tests via Postman and I would like to know if there is any way to automatically generate a CPF in the POST body that I am sending. Who knows via Faker?…
-
-1
votes1
answer1212
viewsError : java.lang.Nullpointerexception: Cannot invoke method Trim()
I have tried using Port and baseUri and does not run the rest, always fails. Complete error: java.lang.NullPointerException: Cannot invoke method trim() on null object at…
-
-1
votes1
answer92
viewsHow does an Ionic application connect to a server?
Creating a Mobile Client/Server Calculator Create a calculator where the user type two numbers and submit for a server to calculate The server will do the calculation and your application will show…
-
-1
votes2
answers2791
viewsHow to pass Array values in Postman
I am developing an API, and one of the modules is the ACL(access control list) in the Laravel Framework. I came to a problem that I haven’t found plausible solutions yet, which is like testing…
-
-1
votes1
answer825
viewsCalling API via Post with JS or JQ
Personal someone could help me by giving an example of how to consume an API that returns a JSON just like this API below: https://console.faceplusplus.com/documents/6329465 Staff implemented the…
-
-1
votes1
answer20
viewsclient resttemplate passes object with data collection, however api Rest only receives the main object
I have a class with a list of another object, but the api only takes the main object @Entity public class Vendacabecalho implements Serializable { private static final long serialVersionUID = 1L;…
-
-1
votes1
answer266
viewscall authenticated Laravel api
Good morning, all right? I am reading an api (which can only be accessed with user authentication) done in the Standard. To consume this data, I am using jquery/ajax. I know I need to send a token…
-
-1
votes1
answer56
viewsJAVASCRIPT - Accessing property that contains api link
Good evening! I cannot access the title property inside the films as I do to make this request? Planet: Hoth Total population: USSR Climate: Frozen Land: tundra, ice caves, mountain ranges Movie…
-
-1
votes1
answer401
viewsFill form fields with API data
Good morning, I have a form where the user enters the code of a product. When entering the code an API is triggered and it returns the data of the informed product. My doubt now is how to make the…
-
-1
votes1
answer474
viewsProblem with Cors Laravel project 5.5 and Vuejs
In an Laravel project using the features of an API I have some logos and I have my endpoints in the Laravel.php api file <?php Route::post("auth", "Auth\AuthController@authenticate");…
-
-1
votes2
answers296
viewsBring data and save to a variable in Controller - Laravel API
public function getListaPresencial(Request $request, Presencial $Presencial) { if ($Presencial->id) { return response()->json(['data' => $Presencial->toArray()]); } $query =…
-
-1
votes1
answer475
viewsProblem with SSL in Cielo Webservice Woocommerce plugin
When trying to save the settings in Woocommerce (by placing Membership Key and Membership Number) a message appears saying: "Cielo Woocommerce disabled: An SSL certificate is required to use the…
-
-1
votes1
answer267
viewsLogin with CPF with Nodejs, Reactjs and Mongodb
Well I built an API for registrations in the remote mongodb database (Atlas), I can register, the intention is to offer a form for the user data(Name, Cpf, phone) and then do the CPF, made the login…
-
-1
votes1
answer174
viewshow to render data from an API in Reactjs?
Sorry, guys, I’m very new to programming and I’m doing a project for a college. I managed to connect the api, I can bring the object from there, but I can’t render this data that is returned, I’ve…
-
-1
votes1
answer28
viewsError in jason_decode() function
Well, I’m making a simple page to consume data from a wikipedia api through a short form: <form action="" method="get"> <input type="text" name="busca"> <input type="submit"…
-
-1
votes1
answer91
viewsHow to reduce Page return fields in an API?
I am implementing pagination in some endpoints of my API and the return is a Page. This object returns many arguments, there is some way to eliminate some of them? The Repository extends…
-
-1
votes1
answer261
viewsBlock access to Vue js routes if you are not logged in
I am unable to block routes are going through normal without authentication I am developing a Dashboard and came to doubt how to prohibit access to routes if not logged in, with this, I thought of…
-
-1
votes1
answer121
viewsQueue schema for PHP code
Good afternoon guys, I’m having a question/need that I haven’t found how to do. I have a code that I use to run several Cnpjs through the Sintegra API, where with the result returned by this I feed…
-
-1
votes1
answer152
viewsRestricting access to routes if the user is not logged in Vuejs
I am unable to block routes are going through normal without authentication I am developing a web application and I have a question about how to prohibit access to routes if they are not logged in,…
-
-1
votes1
answer112
viewsproblems with Axios and React-Native. Axios returning empty attributes
All right? I am developing an application for a client in React-On, due to some integrations that the app needs to have I developed his backend using Laravel 6.x. So far so good, I’ve done all the…
-
-1
votes1
answer105
viewsHow to take all pages of an API and show all data at once on screen using React Hooks?
Hi, I’m studying React Hooks and as a base I’m using a Rick and Morty API to show the characters on the screen https://rickandmortyapi.com/api/character/ However, it only shows twenty characters per…
-
-1
votes1
answer43
viewsHow to display the contents of the array by changing the structure ID dynamically?
I am trying to display the array products, however, I cannot change the Ids dynamically so that all products are displayed. So far, I can only display 1 product, because the ID is fixed, as shown in…
-
-1
votes1
answer135
viewsAndroid emulator accesses web service by browser but not by APP
Good morning, what happens is the following my emulator accesses my web service by browser at http://192.168. 2.192/index.php, it shows the result of the page, <?php $minha_info = "TESTE JSON";…
-
-1
votes1
answer200
viewsRequest data is not returning correctly
I’m trying to create a front end based on the Wars star API, my plan was to create an object to then show on the screen. When I make a request(https://swapi.co/films for example), some object…
-
-1
votes1
answer129
viewsDoes Axios take long to consume the API?
Hey, guys! All right? I am starting my studies in Vanilla Javascript to study future frameworks using js. I made a small web project in which the user type the ZIP code of the residence and the…
-
-1
votes1
answer66
viewsConvert JSON from graphql API to array
I have a research connection to a API graphql, this search returns a JSON, where I store it in content and then turn it into an array, but this array is not showing the values contained in it, keeps…