Phoenix JSON API - Generating code for CRUD actions

Опубликовано: 17 Март 2026
на канале: Alchemist Camp
2,810
59

Part III of JSON API series:    • Phoenix JSON API  

Using Phoenix generators to create everything needed to back a RESTful set of endpoints—the schema, the DB migration the controller and the view.

0:00 - Intro
1:24 - mix phx.gen.json
3:08 - adding the route and migrating
4:21 - browsing the new files
7:51 - my favorite REST client
9:18 - making JSON requests
13:06 - re-ordering collection responses