#127 cURL for CRUD API requests
28/04/2023
Free
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
0
Sign in to join the conversation
Featured in playlists
![#126 API from Zero. Bearer authentication](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg5NCwicHVyIjoiYmxvYl9pZCJ9fQ==--d9ab90e263de74a6c1a4d424201854f86d43ebf7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
![#127 cURL for CRUD API requests](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTkwMywicHVyIjoiYmxvYl9pZCJ9fQ==--1bea179c61fcb2208e2ea8df4531d4f170cea74c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
![#128 Faraday CRUD API requests. Communicate between two Rails apps!](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc2MSwicHVyIjoiYmxvYl9pZCJ9fQ==--4c84f0fbff8ecdac0f4a27620d6743053262adec/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
+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
![CertificateOwl day1 - product and market ressearch](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg1MywicHVyIjoiYmxvYl9pZCJ9fQ==--8979a0a4cc12b072f6977d2875ebc7cf321349a7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
50:43
CertificateOwl day1 - product and market ressearch
06/03/2023
Free
![#67 Streams: Infinite Scroll Pagination](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg3NywicHVyIjoiYmxvYl9pZCJ9fQ==--3ea3519253c25f8ba36102bf6f27feaeb7c202c2/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
18:06
#67 Streams: Infinite Scroll Pagination
22/03/2022
Free