Episode #050 - Rails API - Active Model Serializers

preview_player
Показать описание
Using ActiveModel::Serializer, learn how to create the JSON responses for your Rails API application. ASM is a great object oriented approach to building a JSON API.

Рекомендации по теме
Комментарии
Автор

Active Model serializer seems nifty than others. I haven't used this before but now I think I'll give it a try. Also, eagerly waiting for User authentication over API. Nice video 👍🏻

abhinaykumar
Автор

For some reason, people at my work think we have to move away from active-model-serializer in order to update to Rails 7. I am not finding anything online to support this concern.

dupre
Автор

how to display has_many associations or has_one based on passing params ?

sandeepsoni
Автор

Anything to comment about adapters? Default vs Json API? You just used the default but the ActiveModel documentation recommends using Json API adapter. Any reason for that?

carlosllcastro