Tools in Java/Spring to interact with a Restful API

Diego Alves :

I'm building a Java application that needs to access an external Restful API.

I need to perform POST, GET and PUT on this API.

In PHP I used curl and in C# I used HTTPClient.

Which tool should I use in Java/Spring? I'm new in Java and I'm kind lost.

user7294900 :

Use RestTemplate as Spring's way of sending HTTP methods

RestTemplate offers templates for common scenarios by HTTP method, in addition to the generalized exchange and execute methods that support of less frequent cases

Here are examples of using GET/ POST/ PUT methods

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=18653&siteId=1