Rails 7 #128 Faraday CRUD API requests. Communicate between two Rails apps!

01/05/2023 (12 months ago)

In this episode we will send API requests from one Rails app to another!

While you can use CURL to make HTTP requests from your console, you would want to use Faraday gem to make HTTP requests from your Ruby app.

Here's how you can make GET, CREATE, UPDATE, DESTROY API requets with Faraday.

Episode source code: https://github.com/corsego/128-faraday-api-crud/commit/37148c869314b20ea99b08c3e93b091ce52450f5
Based on this blogpost: https://blog.corsego.com/api-requests-with-faraday

Sign in to join the conversation