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

Published: 21 September 2023
on channel: 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/


On this page of the site you can watch the video online Rails 7 API Tutorial - Create project and build GET & POST with a duration of hours minute second in good quality, which was uploaded by the user Rails Pro 21 September 2023, share the link with friends and acquaintances, this video has already been watched 5,564 times on youtube and it was liked by 136 viewers. Enjoy your viewing!