Rails 7 #128 Faraday CRUD API requests. Communicate between two Rails apps!
01/05/2023 (about 1 year 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
0
Sign in to join the conversation
Featured in playlists
+5
Rails REST API
- Bearer token authentication
- create API endpoints
- Swagger
- OpenAPI
- rswag
- Usage tracking
- Rate limiting
& more!
Recommended based on what you are watching now
01:24:28
Free Friendly Show E5 André Arko and how we got RubyGems and Bundler. RubyConf 2023: what to expect?
20/09/2023 (8 months ago)
16:48
Free Ruby on Rails #44 Rails Counter Cache: Count associated child records CORRECTLY
16/07/2021 (almost 3 years ago)
18:17
Free Ruby on Rails #18 Encrypted Credentials and Global Variables (+ VIM basics)
02/05/2021 (about 3 years ago)
13:38
Free Rails 7 #137 Use ViewComponent to Abstract reusable HTML. Blocks, Slots, Variables
12/07/2023 (10 months ago)