Questions tagged as 'rest'

2
answers

How to make an HTTP request in Ruby?

How do I make an HTTP request in Ruby? I need to implement an API, and for this it is necessary to make a REST request for such a URL, how do I POST such a request?     
asked by 22.12.2017 / 19:24
1
answer

Error executing POST method

I'm facing a problem with the POST method, when I trigger this method it normally inserts into the database, but the application (node index.js) is terminated, at the command prompt I get this error: Error [ERR_HTTP_HEADERS_SENT]: Can not se...
asked by 06.12.2017 / 18:51
1
answer

What 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 com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOExcept...
asked by 21.12.2017 / 21:19
1
answer

JSON Data format

Hello, I have a webservice that needs to fetch some data in the database and return a json object and I'm having problems with the date. here is the object import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.dat...
asked by 10.10.2017 / 22:11
1
answer

A timer for a service to read a table in the DB

I need to have a service read a table in the DB every 5 or 10 seconds. I do not see any other way to do that. When this table changes a certain flag, then the service pushes a message to an App. I do not know if this is the best way to automate...
asked by 29.09.2017 / 20:44
1
answer

Consume REST IONIC3

Hello, I am new to the web and Ionic3 and I have a problem, I followed a tutorial to consume a rest API, I was able to bring the list with the users, however I am trying to bring a specific user and show it on screen if I I change the URL to the...
asked by 14.09.2017 / 21:54
1
answer

XMLHttpRequest can not load in Vue js

My app.vue <template> <div id="app"> <h1>{{ titulo }}</h1> <li v-for="usuario of usuarios"> </li> </div> </template> <script> export default { name:...
asked by 28.08.2017 / 20:26
1
answer

Retrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT [duplicate]

I've done some Retrofit projects and it always worked but I'm doing one that consumes end-point from api.github.com and is giving an error and I can not find a solution, I've done everything I could, if anyone knows what to do . The error...
asked by 13.09.2017 / 19:59
1
answer

How to implement application rest in production? (Web or cloud servers) [closed]

I'm new to platform and I'm learning java doing a little android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to create an api rest using netbeans, tomcat and glassfish. So...
asked by 03.07.2017 / 22:46
2
answers

How to define Enumeration in JSON

I have the following enumeration in XSD for a WSDL <xsd:simpleType name="tipoDocumento"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="INICIAL"/> <xsd:enumeration value="FINAL"/>...
asked by 03.07.2017 / 13:48