Learn how to build a Rails API application and how to build endpoints for listing and creating records from the database. This is the first video in my Rails 7 API tutorial series.
📖 You can purchase the eBook and code for this tutorial - https://tomkadwill.gumroad.com/l/rail...
00:00 - Intro
00:21 - Building a payments API
00:52 - Building a new Rails API-only app
01:26 - Adding a route for our first endpoint
02:27 - Adding a controller for our first endpoint
04:04 - Testing GET /payments endpoint
04:45 - Generating a model for payments
06:15 - Running a database migration
07:12 - Update controller to return payments from the DB
07:50 - Adding DB records via rails console
09:11 - Adding POST /payments route
09:49 - Using rails routes and discovering a bug
10:57 - Adding controller action for creating a payment
11:59 - Improving the create action to handle errors
14:19 - Improving the create actions using strong params
16:01 - Testing POST /payments
Download Postman for easier API requests - https://www.postman.com/
En esta página del sitio puede ver el video en línea Rails 7 API Tutorial - Create project and build GET & POST de Duración hora minuto segunda en buena calidad , que subió el usuario Rails Pro 21 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,564 veces y le gustó 136 a los espectadores. Disfruta viendo!