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
votes0
answers518
viewsAPI consumption with multiple requests
Good morning! I need to make several requests in a REST API, using PHP, passing multiple parameters. currently I make one foreach using a variable in the url. However due to processing time and…
-
0
votes1
answer244
viewsWhat is the problem with this java class that consumes a Rest service?
I have a Servlet : import br.edu.ifpb.pos.model.Art; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import…
-
0
votes0
answers503
viewsPass json format parameter to consume service post in app Xamarin.Forms
In my App I have this method to consume the service post (still writing the method): public async Task<string> PostIndicador(string jsonValue) { client = new HttpClient(); string url =…
-
0
votes0
answers113
viewsMy app aborts when trying to consume Rest
It has a Rest service that my android App needs to consume. For this I have to send a parameter in json format. It turns out he aborts the moment he consumes the Service. That’s the code I have for…
-
0
votes2
answers897
viewsDownload Zip Files via blob array
I have a rest in java where I return a byte[] of a ZIP file. If I access the URL of the API by the browser, the file is downloaded normally without error. But if I try to download the file through…
-
0
votes1
answer71
viewsCordova error while running Ajax call
I have a Cordova 7.0.1 application that requests a method from an Asp.Net MVC Web API 4.6 website. When the call is made on the device, Cordova run Andoid, execution of the method returns error. If…
-
0
votes0
answers510
viewsConsume API Rest in C# by Ajax in jquery
Hello I have a C# API that Returns a JSON object Follows the code [HttpGet] public string Login(string Pass, string User) { Return ret = new Return(); try { UsuarioDAL DAL = new UsuarioDAL(); var…
-
0
votes1
answer174
viewsI cannot register data using JAVA Rest webservice
When registering data in my database using webservice the following error occurs. Sending 'POST' request to URL : http://localhost:8080/FazendaWS/webresources/fazenda/Usuario/inserir Post parameters…
-
0
votes0
answers83
viewsMongodb error - geoNear "in geo indices"
To get a Mongodb database use the following code: router.get('/multibancos', function(req, res, next){ MB.aggregate().near({ near: { type: "Point", coordinates: [parseFloat(req.query.lng) ,…
-
0
votes1
answer4944
viewsHow to consume webAPI REST ASP.NET MVC
Good is the following, I am developing a service Rest and an application that will consume this web-service (VIA BROWSER SAME). In my project, I have the model (in this case my Oracle database), My…
-
0
votes1
answer30
viewsJSON return in the desired format from SQL
I am trying to get the following return in Mysql: { matricula : '123', periodo : [ {id : '012016', titulo: 'Janeiro 2016'}, {id : '022016', titulo: 'Fevereiro 2016'}, {id : '032016', titulo: 'Março…
-
0
votes0
answers38
viewsProblems with Rest Java swing consumption?
I have a java swing application where I get a list of data from a webservice. When I run this by netbeans it does it right, now when I jar to send it to the client, the application just doesn’t make…
-
0
votes1
answer142
viewsTomcat Maven web project Rest application does not work netbeans
Personal created a simple application to make a web service I did it this way netbeans file -> new project -> Maven (web application) I created a class called Restapplication package…
-
0
votes1
answer245
viewsBeanutils.copyProperties (Ignore more than one field)
all right? I am using java and spring-framework in a restful project, so I created the following class: Categoria (id, descrição, dtCadastro, dtAlteração) In class I am using the annotations…
-
0
votes0
answers25
viewsDebug - Find the route of my http Rest - Grails
I have a call POST http Rest, where I get a file my parameters and mount it to log in, I believe it is talking because the route I am mounting this wrong, It is missing some bar, or capital letters…
-
0
votes1
answer826
viewsError deserialize JSON - How to Resolve?
I’m using jpa and I have these two entities: @Entity @JsonIdentityInfo( generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") public class Categoria implements Serializable { @Id…
-
0
votes2
answers858
viewsFlask - sending form back to another function
Below is my default.py where I set the end-point; What I’m trying to do is get the information from FORM that’s on "/" send to the return_request() and append the result of Request in "/output" def…
-
0
votes2
answers474
viewsRestful implementation of express routes do not work on the server
I have a Restful API implemented in Nodejs working normally locally, with all routes responding, all right. However, when putting into production on the Kinghost server only the root route works. I…
-
0
votes1
answer146
viewsRetrieve JSON user data by jquery
I have a json that I am running through the json-server and this in the address: http://localhost:3000/ Inside it, there is a scope of "users", which I would like to take. I have the following…
-
0
votes1
answer1364
viewsHow to receive data in JSON (REST)
Hello, I am learning to program, I am in the 1 semester of development and I am being charged at work to learn how to do this, and I would like to know if what I did is right or not <!DOCTYPE…
-
0
votes0
answers34
viewsDoubt in loading the Rest acquisition to the view
I’m following a video lesson and a question has arisen. created two folders one for the front (which is run by http-server port 8080) second folder to the back ( which is run by the port 3000…
-
0
votes0
answers44
viewsSend a data to the database with Node js
I am creating a REST API, but with difficulty in sending a data to the database using 3 modules, let me show my code rotaCliente.js on this route I receive a json with email,name,password and Cpf…
-
0
votes0
answers190
viewsHow to format REST API display in browser using PHP
I am building a Rest API using PHP. The data are accented correctly from the database and arrive in the application also correct. The problem is trying to access the API address from the browser. I…
-
0
votes1
answer320
viewsDoubt about best practices for Rest API (object -> json)
I have doubts about the improvements in json/object conversion between server (Rest api) and client (javascript framework). My question is in relation to objects referenced by the main entity,…
-
0
votes1
answer449
viewsHttp request with angular 6
I’m trying to consume a REST service that has a basic authentication with angular 6 but I’m not succeeding follow the code I’m using unsuccessfully: public iniciarProcesso(dadosProcesso: string):…
-
0
votes1
answer118
viewsType Mismatch: cannot Convert from Unmarshaller to Pool.Unmarshaller
I’m getting this eclipse error message in a Rest project java client code. package cliente; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import…
-
0
votes0
answers41
viewsRestful returns Undefined in JS Class
I’m making changes to HTML after taking data from the Lastfm API, working with class in JS, making method calls within the class itself, where the date was called before, but this returns Undefined:…
-
0
votes2
answers228
viewsAllow a list as argument
I have a Python REST API that takes 2 arguments, a Url list and a word. I am a beginner in Python and would like to know if it is possible to split the string of the URL to accept more than one URL…
-
0
votes1
answer163
viewsNullpointer when using Cucumber and Rest-Assured
I’m performing an API test using Cucumber and Rest-Assured, but in the call I use Rest-Assured is being returned a NullPointer. My Feature: Scenario: Parâmetros não foram informados Given A API de…
-
0
votes1
answer437
viewsTaking information from a JSON and saving it to SQL Server using Javascript
I have this code, which returns the information I want and shows on the page. Now I would need to save this information to an SQL Server database, as this would be possible? This is very difficult…
-
0
votes1
answer138
viewsImage manipulation with nodejs and Ionic
I have an Ionic application, in it I have to send an image converted to Base64 for an api, and the api for the database. I was getting error by the size of the payload, I found on the internet about…
-
0
votes1
answer232
viewsHow to consume an API "without permission"
In the searches I did, I found that it is not possible to consume an API if you do not release your host on the server(back-end), but I hope you are mistaken, this is the reason for this question,…
-
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
votes0
answers32
viewsError on Metadata type when I try to do POST
I have this code: function insertuser(obj){ var listID = obj.getAttribute('data-listid'), itemID = obj.getAttribute('data-itemid'), URLID = obj.getAttribute('data-itemurl'); var UserId =…
-
0
votes2
answers834
viewsHow to send headers on all Ionic HTTP requests 3
My code is like this, I would like to know how to send an Authorization token in all http requests made in Ionic 3: import { Component } from '@angular/core'; import { NavController } from…
-
0
votes1
answer101
viewsRest only returns XML
good evening to all, I’m making a Restfull API for mere learning and ran into a simple problem, but I couldn’t find a solution on the internet. I created this class to control games: @Path("/games")…
-
0
votes0
answers128
viewsError while doing query
I am building a Rest api with Node, but when trying to get a pass parameters returns all the data. app js. const express = require('express'); const app = express(); const mongoose =…
-
0
votes1
answer105
viewsImplementation of the Responseerrorhandler Interface (Spring)
Hello. I’m trying to override the Responseerrorhandler interface so I can return the entire request (status code, body etc.) in case of any answer other than 2xx. I noticed that the default Spring…
-
0
votes2
answers212
viewsFailure to Try to Inject Spring Boot Interfaces
I’m developing a three-layer Rest api. Service, Repository and Domain, I injected the repository into the service using @Autowired but when I try to inject the service into the controller in the…
-
0
votes1
answer2121
viewsSimple GET request to a Rest API in flutter
I’m trying to get a json by making a request to an API, but it’s making a mistake when making the request. Follows the code: Future<Map> timeStamp() async { const request =…
-
0
votes0
answers268
viewsMethod that takes all data returns empty JSON in the API
I’m developing an API based on code from a publication I saw on the internet, source: https://www.w3jar.com/crud-rest-api-in-php-pdo/ This file has a condition, if I pass an ID it returns a good…
-
0
votes0
answers1434
viewsConsume Rest API in Delphi
I am trying to consume API Rest, made in php, from a Delphi application. In summary the API receives a field called name, another field is the parts parts, but in this case the field is a parts Arry…
-
0
votes2
answers702
viewsQuery with Collection in JPA Spring Data
Good afternoon, everyone, I have a question that might help other people. In my project I have a vehicle entity, this entity has a collection of another entity called Optional (Vehicle Optional), an…
-
0
votes1
answer65
views@Restcontroller returns to same page but with different URL
I’m using @Restcontroller to manage different Forms/actions on the same page (with Thymeleaf), and it’s working properly, but when calling method (triggered via button on page) when returning to the…
-
0
votes1
answer704
viewsREST API using Spring Boot
How do I bring all the data from an external service using Spring Boot. I have never done this to bring the information. I have created applications using data from a database. I saw some tutorials…
-
0
votes1
answer58
viewsAPI Rest only returns the last value
I am using ASP.Net to create a REST API I’m trying to create a method that returns a list of groups structured this way: { "IdGroup": "1", "NameGroup": "Group1", "Installations": [ {…
-
0
votes0
answers21
viewsHow to send POST data from the front to the back
I am developing an application with nodejs/express and I came across the following problem how the data is sent from the front to the back By using the Postman that is used to test the requests I…
-
0
votes0
answers339
views"The underlying connection was closed" error in REST Httpclient C#
I’m doing a REST integration with C# used Httpclient, most of the time the data was sent successfully, but I went to investigate why some of these were returning with error, found that what they had…
-
0
votes1
answer15
viewsError printing Owner.screenname and Owner.url (Dailymotion Data API) property value
When running GET for PLAYLIST and VIDEO resources, I had a problem. When running GET on my console, the request correctly returns the values of the Owner.screenname and Owner.url attributes;…
-
0
votes1
answer1132
viewsAPI Rest ASP.Net Core 3.1 returning 404 error when published
I’m doing some testing with Apis in ASP.Net Core 3.1. In this case, I am using Entity Framework to access the database and Identity Core to register and log in users. To do so, I have implemented…