Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
141いいね 5643回再生

Rails 6 API Tutorial - Controller Representers p.12

In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services.

✨ Check out the new version of this video series, which has been updated for Rails 7    • Rails 7 API Tutorial - Create project and ...  

📖 You can also purchase the eBook and code for the new Rails 7 tutorial - tomkadwill.gumroad.com/l/rails-api-tutorial

This video covers:
0:00 - Introduction. What problem do representers solve?
1:25 - What are representers (serializers)
2:11 - How representers are called from Rails controllers
3:07 - Add a representer for books
7:15 - Test the representer via cURL and debug
10:23 - Use a method for representing a more complex field

If you’re new to this series, you may want to start with part 1:    • Rails 6 API Tutorial - Create project and ...  

コメント