Questions tagged as 'rest'

1
answer

Consume webservice Rest on Android

I'm trying to consume a Rest webservice on Android. I have already done all the steps of the tutorial, but it continues falling onFailure and presenting the error message. I already checked the whole code, but since I am a beginner, I could not...
asked by 02.06.2017 / 01:24
1
answer

Error 415 when posting with json

I have a CREST REST application that responded in XML, however, I want to change it and get it to respond to JSON. I can do the GET in the restclient, but the POST, PUT and DELETE do not, it gives the error 415 Unsupported Media Type. What el...
asked by 27.10.2014 / 18:00
1
answer

Error with retrofit

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ public interface RestApi { @GET("/posts") Call<Model[]> getWheatherReport(); } public class Mai...
asked by 29.07.2016 / 18:15
2
answers

What is the best language for RESTful? [closed]

I'm a PHP programmer, but I'm having a hard time finding useful ways to do REST. And so I'm aiming to learn a second language, I already know some, but there might be a better way to do Rest. Please tell me why the above language is the best...
asked by 08.05.2015 / 19:45
1
answer

How to consume an API "without permission" [duplicate]

In the searches I did, I discovered that it is not possible to consume an API if it does not release its host on the server (backend), but I hope it is mistaken, this is the reason for this question, is there any method to consume an API "with...
asked by 27.10.2018 / 06:13
1
answer

Lambda or Linq brings me all the field and not just those of the expression

Just for learning, understand the section. I made a lambda from a bank with only 6 fields, like this: public List<LiberacaoDTO> getAutoriza(int idorcamento) { var lista = contexto.Liberacoes .Where(m => m.IdOrcamen...
asked by 27.08.2017 / 23:00
2
answers

Best solution for Web service Rest [closed]

I wanted to implement a Web Service that would provide data to mobile platforms (Android and iOS), does anyone know the best service I can use for this? I was doing some research and found RESTEasy and JBoss, but as I do not know anyt...
asked by 07.08.2015 / 17:25
1
answer

What is the usefulness of pipe () and map () functions in Angular 6?

I learned that I have to use both of these functions when I'm working with Http requests, I've learned that you have to use both of these functions as a cake recipe, which you use and ready, I wanted to know why you should use it. > Example of...
asked by 01.09.2018 / 17:19
2
answers

Client Rest in Java receiving a LocalDate

I'm doing a test client in java. My workbook class looks like this: public class Livro { private Long id; private String nome; @JsonFormat(shape = JsonFormat.Shape.STRING,pattern="dd/MM/yyyy") private LocalDate publicacao;...
asked by 06.03.2017 / 00:28
2
answers

API mercadolivre does not return JSON

When I paste the link address in the browser I see that the restfull API of the free market returns the data in JSON format, but when accessing the same link using the RestDebuger that comes with Delphi (Tools / Rest Debuger) I can only receiv...
asked by 12.01.2017 / 04:03