How to get JSON data from REST API in Vaadin 8

I have a REST API from NODE JS . How to GET and POST JSON data to the API in vaadin 8.
Thank you.

Hi,

you can start with https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html. If you need more sophisticated things like authentication cookies etc you can use https://hc.apache.org/

There is a neat project which generates you a proxy based on you interface https://github.com/mmazi/rescu.

Take a look at this blog post as well: [https://vaadin.com/blog/consuming-rest-services-from-java-applications]
(https://vaadin.com/blog/consuming-rest-services-from-java-applications)

It’s a bit old, but should still be relevant.

-Olli