Questions tagged as 'rest'

0
answers

How has your experience with GraphQL been? Above all compared to the REST model

I'm doing a part of a project that has been considered the possibility of using Graphs for building APIs. Initially I found it interesting, but I had no experience with this technology and although I did some tests and studied superficially, I c...
asked by 24.04.2018 / 16:54
0
answers

SEND POST VB.NET

I am trying to send a file via post, but I am not able to do, would anyone have any tips to send this code in vb.net? POST /holmes/api/upload?thumbPage=0&natureId=48658 HTTP/1.1 Host: redekrill.holmesdoc-homolog.com accessToken: meutoken...
asked by 30.04.2018 / 15:58
1
answer

BeanUtils.copyProperties (Ignore more than one field)

Alright? I'm using java and Spring-framework in a restful project, so I created the following class: Categoria (id, descrição, dtCadastro, dtAlteração) In the class I am using the @PrePersist and @PreUpdate annotations for the...
asked by 13.04.2018 / 15:42
0
answers

DataSnap Capturing Headers

Is there any way in DataSnap REST, to capture information coming from Headers (GET)? I researched and found: var oWebModule: TWebModule; sHeader: String; begin oWebModule := GetDataSnapWebModule; sHeader := oWebModule.Request.Conten...
asked by 13.04.2018 / 16:25
0
answers

How to call a method in the view that returns a pdf to the user?

I created a small script to consume my API, in Ruby. require 'http' data = response = HTTP.get("http://localhost:9292/api/boleto", :params => {:type => 'pdf', :bank => 'blabla', :data=> '{...}'}) puts response.body # retorna um...
asked by 06.04.2018 / 16:20
1
answer

What should I return in a REST API when the results are either true or false?

When I search an information in the database and this information is not returned (since it does not exist), what should I do? Filling a JSON object for GET return? And if I return false? Can the response be the status code 201 or 404? What w...
asked by 21.03.2018 / 20:14
1
answer

REST API route pattern

I am creating an application similar to Twitter using Laravel and React, where the database has the tables: Post, User, Relation, Mention and Repost. In the 'timeline' screen of the application will be displayed information of all the tables of...
asked by 09.03.2018 / 14:31
1
answer

API Restful java gets wrong JSON POST date

I have a Rest API in java that is getting the wrong date. JavaScript sends the following JSON: { "pessdtcad": "2018-02-24", "dataNascimento": "1984-05-18", "nome": "GUSTAVO DE FREITAS", "sexo": "M", } And the backend shows the dates one day...
asked by 27.02.2018 / 16:28
0
answers

Problems with consumption Rest Java swing?

I have a java swing application where I get a list of data from a webservice.  When I perform that by netbeans it does right, now when I generate the jar to send to the client, the application simply does not make the request, it hangs. Here's t...
asked by 27.02.2018 / 19:10
1
answer

JSON return in the desired format from SQL

I'm 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ç...
asked by 24.02.2018 / 01:01