How to send a request from one REST API to another running on different machines?

Good Day Elixir Community.

Please assist if you can.

I am currently working on a project that is using REST APIs(Phoenix) .I have designed my APIs such that I can create a Customer and I can create a bank account linked to a specific customer, and I can also do multiple transactions on the bank account(deposit,withdrawls,transfers) , all this is being done using API requests.

I want to upgrade my project such that when I am running it on a specific port, a third party who is also running the project on their specific port can do a transfer from a bank account they created on their project to a bank account which is created on my project(ie. these two projects are running on different PCs).

What would be the simplest way to implement this Logic on both applications.

Your responses will be appreciated.

Thanks! :smiley:

Hi, you need to use http client library.
Tesla is one of them: GitHub - elixir-tesla/tesla: The flexible HTTP client library for Elixir, with support for middleware and multiple adapters.
You write tesla client in code where you want to call your rest api for money deposit.
And here is how to create local network between those two pcs: How to Create a Local Area Network (LAN) (with Pictures) - wikiHow