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/
Auf dieser Seite können Sie das Online-Video Rails 7 API Tutorial - Create project and build GET & POST mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Rails Pro 21 September 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,564 Mal angesehen und es wurde von 136 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!