Most voted "rest" questions
REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems, such as the World Wide Web, using simply HTTP. It has grown in popularity over RPC architectures such as SOAP, due to intrinsic client-server decoupling, thanks to the uniform interface that establishes between heterogeneous systems.
Learn more…552 questions
Sort by count of
-
0
votes1
answer129
viewsError when requesting API
I’m getting an error, possibly from CORS, when making a GET for an API, which is a third-party API and I don’t have how to release server-side CORS: Exception in thread "main"…
-
0
votes1
answer121
viewsHTTP GET in JAVA with a different result than POSTMAN
I am running an HTTP Get Request in Java using Gson to use the data in my program, but the first and last attribute are coming as null. However, when performing the request in POSTMAN I saw that…
-
0
votes0
answers53
viewsProblem consuming Rest API
I am trying to consume an api, but it is not returning an internal list, it only returns totalSize and done. Code: public List<PessoaResponseDTO> get(String url) throws Exception {…
-
0
votes1
answer87
viewsSend to API via POST Request in Delphi 10.3
Good evening Guys, I’m a beginner in Delphi and I’m trying to send a creation request for an Api but I’m having some difficulty with the POST. How do I send this? I’m trying for this API:…
-
0
votes1
answer49
viewsProblems for the development of the POJO with Rest Assured
Hello, I’m training with Rest Assured, I can’t show the project itself, but basically, it’s past token and some parameters per header, and the API returns various data, it would be something like :…
-
0
votes1
answer45
viewsResttemplate error
Guys I’m trying to perform a query in a time forecast API but whenever I will perform the query give me this exception Servlet.service() for servlet [dispatcherServlet] in context with path [] threw…
-
0
votes0
answers64
viewsbcrypt.compareSync always returning false
I am creating an api for reasons of studies, and I have a problem that bcrypt keeps returning false for what it seems to me, I used this same comparison function in another study project and it had…
-
0
votes1
answer80
views -
0
votes0
answers130
viewsMongoparseerror: Invalid Connection string Express+Mongo
I’m using for the first time the express and the Mongo, it works normally locally, no authentication, but when I went to cloud, in the Umbler hosting it started to show error Jan 07 14:05:19 } Jan…
-
0
votes0
answers76
viewsHeroku Postgresql - Error Status 500 in second query
I created a Node REST API that requests a Postgresql in Heroku. I use Postman to test the requests. It is working ok on the first request (Status: 200). Follow the Heroku log: But when I try to do…
-
0
votes1
answer86
viewsError while compiling SPRING BOOT application
I am trying to compile a java application and is giving this error: restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create…
-
0
votes0
answers25
viewsProblem when setting entity in httppost using Java
I’ve been trying to replace a library for hours, can someone help me? I believe that due to lack of jar compatibility, my system is not accepting the following line of code:…
-
0
votes1
answer92
viewsHow do I use Ajax to send form data in JSON format to REST API in PHP?
I need to send data from a form in JSON format to insert into the database through an API made with PHP. I researched a little and saw that it is possible to solve with Ajax but I am not getting.…
-
0
votes1
answer39
viewsHow to put returned Web Service data into Json (GET) for an array or variable in c#
Hi, I’m calling a web service in Rest, I can access the answer but I wanted to organize the data that is returned (which is in Json), for an array or variables but how can I do it? Thank you in…
-
0
votes0
answers20
viewsExpress does not run route
This is my index, but when calling the drones route, it displays the error: CANNOT GET /drones/ But before it worked normally, it stopped working suddenly. const express = require('express'); const…
-
0
votes1
answer62
viewsHow popular is an object loaded with populate in Mongoose?
I have a doubt, if I already have a query being populated in Mongoose, and it is populated with a model that also has relationship, there is a way to popular it too? For example: I have my model of…
-
0
votes1
answer35
viewsFlutter Error Post - Datatime
The following situation is occurring in my project. I have a model that has a property like Datetime, in Tojson I pass the date to the json using toIso8601String, in case I just put the current date…
-
0
votes1
answer45
viewsRequest Problems (Java - Spring Boot)
Hey, guys, how’s it going? I have a code for a Rest API that registers courses and students. There is a bi-directional relationship. N Students -> 1 Course mapped as follows: @ManyToOne…
-
0
votes1
answer134
viewsHow to capture the Header of a PHP Curl request?
I’m setting up a local Rest API for testing and learning how to authenticate via Headers, so I have 2 files that will interact: 1: Client.php $DadosArray = array(); $DadosArray["item"] = "1234";…
-
0
votes0
answers16
viewsHow to make a executable jar with glassfish and Grizzly
I would like to make a Rest application but I needed to be able to use a executable jar to climb the server so I don’t need an IDE, someone can tell me how to make a executable jar with glassfish…
-
-1
votes1
answer110
viewsWeb Service runs but when consuming method gives error
I struggled to set up my web service on IIS. It goes up, showing the screen that WS is ok. It turns out that when I pass a parameter to it gives this error: REQUEST ERROR The server encountered an…
-
-1
votes1
answer186
viewsHow to extract data in the form of indexes from this array?
I’m developing a real estate website and I will use the REST. The code below returns me one by one the properties registered in the server software as can be seen here. $dados = array( 'fields'…
-
-1
votes1
answer487
viewsWebservice Rest with PHP
I am doing research that will result in the development of an application and we come to the issue of using webservices, I have some questions that I would like your help. Let’s use Rest, which PHP…
-
-1
votes1
answer518
viewsBasic API Rest authentication (C#)
I have an application made in ASP.MVC where I implemented ASP.NET Identity for user registration/login. Now I have to create a Web API Rest with a simple authentication, just a single user and a…
-
-1
votes1
answer331
viewsError calling REST service
Yesterday good, my service worked, except for fields float, but commenting on this part until I have a solution, I was testing and running, in reality an Android APP to consume this service. Today I…
-
-1
votes1
answer322
viewsWhat should I return in a REST API when the results are either true or false?
When I search for information in the database and this information is not returned (because it does not exist), what should I do? Fill a JSON object for GET return? And if it returns false? Can…
-
-1
votes1
answer48
viewsHow to Restructure a JSON
I created a Node js API connected to Oracle 12.1.0.1.0c where I connect and do the request as follows through the dbconection.js file as shown below: const oracledb = require('oracledb'); const {…
-
-1
votes0
answers14
viewsResponse print of the Rest Assured being printed with encoding
@Test public void testValidarObtencaoToken() { response = post(UsuarioFactory.setBodyUsuario("rfrffr", "rfrffr", "rfrffr"), "/usuarios"); System.out.println(response.getBody().asString()); } Console…
-
-1
votes1
answer406
viewsWeb-Service returning maximum quota exceeded. How to resolve?
I’m consuming a third-party web-service. When I get the return from the service the following message is displayed: Maximum input message size (65536) exceeded I’ve searched forums for a solution,…
-
-1
votes1
answer221
viewsError: package not imported in eclipse
I’m creating a Rest app in eclipse but am getting an error message when importing classes from jersey. Code import javax.WebServices.rs.GET; //import da biblioteca jersey import…
-
-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
votes2
answers345
viewsJSON with array within IONIC 3
I would like to know how I recover the data coming from a Rest api, where I have an array within a Json. Example Below: [ { "Presencas": [], "Turma": { "Alunos": [], "Voluntarios": [], "Id": 1,…
-
-1
votes1
answer809
viewsError making request in Ajax
I am sending a request by ajax to my REST server and am getting back: Access to Xmlhttprequest at 'http://localhost:8081/datasnap/Rest/Tcadastros/Group/' from origin 'null' has been blocked by CORS…
-
-1
votes2
answers245
viewsError 404 - The requested Resource is not available. Jersey REST
When starto the Tomcat he calmly calls the Hello World on index.jsp. But when I call @Path it gives 404. I’m calling: http://localhost:8080/backend/service/todosClientes. I’m wearing the Soapui…
-
-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
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
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
answer91
viewsHow to validate Date type with Springboot validation bean?
Gentlemen, I would like to know from you, how are you validating Date type fields in Spring-boot with Bean Validation? I used the note @DateTimeFormat but I did not get the expected return, and the…
-
-1
votes0
answers29
viewsProblem with the CORS
I’m developing an api for an education platform, and so created my private and public routes. The public are for creation and validation of token, then use it to access the routes but Cors, for some…
-
-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…
-
-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
votes2
answers900
viewsReturn JSON from API with parameter
Hello, I have a service that consumes the Openweather API. There is a list of cities registered in the view layer. Where you can see the weather forecast for each city by clicking on the 'forecast'…
-
-2
votes1
answer185
views -
-2
votes1
answer102
viewsBelongstomany Relationship - Sequelize
Hello, I have a problem in listing records with belongsToMany association using sequelize + nodejs. I have the tables Developers and Technologies. The relationship between them is Many to Many. To…
-
-2
votes1
answer133
viewsAPI Rest Spring boot
I’m developing an API to register clients using Rest and Spring, I can already add customers and search by Id, but I would also like to be able to search by name and I’m not getting, would anyone…
-
-2
votes1
answer81
views6 positional argument(s) expected, but 1 found. Try Adding the Missing FLUTTER
I’m developing a screen that sends information to a Rest C api# However from the following error 6 positional argument(s) expected, but 1 found. Try Adding the Missing Follows code: import…
-
-2
votes1
answer41
viewsProblem when making a POST request
Hi, I’m trying to make a POST type request with Bearer token for an endpoint. When I perform this request by the postamn it returns normally, but when it is performed by the method I created using…
-
-3
votes1
answer151
viewsError testing Cielo sandbox
When accessing the urls https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/{Paymentid} when replacing Paymentid with a value: 1 (random value) I get this message: "Message": "The requested…
-
-3
votes1
answer84
viewsERROR 500 - But I don’t know where is wrong, someone help me!
@PostMapping//Create public ResponseEntity<Categoria> criar(@RequestBody Categoria categoria, HttpServletResponse response) { Categoria categoriaSalva = categoriaRepository.save(categoria);…