vendredi 21 septembre 2018

One Rest API that call another Rest API

For example, there are API A and API B. API A have a method GET http://localhost:8080/apiA/user to get all the user information from the database. I need to design an API C. When calling the GET http://localhost:8080/apiC/user, API C will take the request and send the request to API A and then get the response from API A and send the response(for example like JSON data) as a POST request to API B. Any idea about that?

Aucun commentaire:

Enregistrer un commentaire