U
U
uniloftsky2021-03-29 18:06:53
Java
uniloftsky, 2021-03-29 18:06:53

Why is RestTemplate not fully accepting an object?

I'm trying to implement a proxy server for geocoding through a third-party API - OpenCage.
The API returns a JSON object, where there is an array of results, each is a set of identical data structure.
If we directly use the http request of the API itself, then we get 4 found results to a specific address. If we use RestTemplate and pass the request through it, then we get 1 result with the same input data at the output.
If the request is received by native classes from the java.net.* package, then everything works fine. What's wrong with RestTemplate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-03-29
@xez

Obviously you are using it incorrectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question