Questions tagged as 'rest'

0
answers

Download service file Rest with Ajax

I need to download an Excel (.xlsx) file that is generated by a rest Spring service. Does anyone have an example of how to do this? The controller rest looks something like this: private static final String PATH_FILE = "/home/testes/Arq...
asked by 15.08.2018 / 19:09
0
answers

Android urlConnection problems with accents

Good afternoon. I have a Datasnap Rest created with Delphi Tokyo which returns a json that will be consumed by an android application, in android I am using the code below with urlConnection. StringBuilder result = new StringBuilder(); tr...
asked by 24.07.2018 / 21:27
1
answer

Doubts about best practices for API Rest (object - json)

I have questions regarding the practical improvements in json / object conversion between server (api rest) and client (javascript framework). My question is is regarding the objects referenced by the main entity, should I send only IDs or compl...
asked by 17.07.2018 / 15:18
0
answers

Server error in Node.js

Server running on port 8080 events.js:183 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:992:11) at TCP.onread (net.js:618:25) After some time in the air the server of this error...
asked by 27.06.2018 / 15:46
0
answers

Send a data to the bank with node js

I'm creating a REST API, but I'm having difficulty sending a data to the database using 3 modules, let me show my code rotaCliente.js on this route I get a json with email, name, password and cpf and command for the controller driver module....
asked by 24.06.2018 / 08:20
0
answers

How to format REST API display in browser using PHP

I'm building a Rest API using PHP. The data is accented correctly from the database and arrive in the application also correct. The problem is when trying to access the API address through the browser. I want the data, when accessed by the br...
asked by 30.06.2018 / 05:33
0
answers

Rest Server - Matrix / Branch

I have a rest server that brings me the requests from the parent company, now the client has opened a branch office. How do I make the rest connect to the branch office when the user logs in to the local desktop. My server rest goes online at he...
asked by 24.06.2018 / 16:58
0
answers

Doubt loading the rest of the view

I'm following a video lesson and a question has come up. I created two folders one for the front (which is run by the http-server port 8080 server) second folder to the back (which is run by nodemon port 3000) But unfortunately it does...
asked by 21.06.2018 / 07:25
0
answers

Java Rest with Jersey and Tomcat error 404

I'm trying to follow a rest tutorial with jersey and tomcat. But I'm getting the 404 error. Can someone help me? Here are my classes and settings: package com.programmer.gate.JerseyRestService; import javax.ws.rs.GET; import javax.ws.rs.Path;...
asked by 11.06.2018 / 22:02
1
answer

How to receive data in JSON (REST)

Hello, I'm learning to program, I'm in the first semester of development and I'm being charged at work to learn how to do it, and I'd like to know if what I did is right or not. <!DOCTYPE html> <html lang="pt-br" dir="ltr"> <hea...
asked by 01.06.2018 / 19:16