Rails 7 API Tutorial - Create project and build GET & POST

Publicado em: 21 Setembro 2023
no canal de: Rails Pro
5,564
136

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/


Nesta página do site você pode assistir ao vídeo on-line Rails 7 API Tutorial - Create project and build GET & POST duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Rails Pro 21 Setembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,564 vezes e gostou 136 espectadores. Boa visualização!