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

Pubblicato il: 21 settembre 2023
sul canale di: 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/


In questa pagina del sito puoi guardare il video online Rails 7 API Tutorial - Create project and build GET & POST della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Rails Pro 21 settembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,564 volte e gli è piaciuto 136 spettatori. Buona visione!