7 years ago I was googling rails call controller action from console
π. Well, THIS is the way!
API let's apps communicate with each other. CURL let's you make http requests to any URL (or localhost) from your command line.
You can test your API endpoints with CURL. Also, if you know how to use CURL, you don't need external services like Postman to play with your own API.
Episode source code: https://github.com/corsego/127-curl-with-rails/commit/e99d3ef4b1525a5d61c19eb320d9778ca71168c9
Based on this blogpost: https://blog.corsego.com/api-requests-with-curl