I have to rails application, my aim is to call an API on remote rails application and get back the result of that API.
for example:
1st Application has update() API which does some processing and create a hash called data
Now I want to call update() from 2nd Application and want data hash in response.
what I am doing right now is using RestClient.get(url) url is 1st application's url appended with API name.
Does this solve my requirement or is there any other better way of doing this?
Aucun commentaire:
Enregistrer un commentaire