REST JSON APIs on Rails: Create Rails API-only application. Episode #3

preview_player
Показать описание
Create Rails API-only application to build JSON REST APIs

In this episode I will show you how to create a rails api-only application and build a couple of REST APIs that are JSON. I will be using docker and docker-compose to create and run the rails api application.

For JSON views I will be using jbuilder gem which has a good DSL syntax. I will use rails scaffold to generate some APIs and then make a few changes to the JSON views to walk though some of the jbuilder structures.

------------------------------------------------------------------------

Source code:

------------------------------------------------------------------------

Related episodes:

------------------------------------------------------------------------
Related episodes:

#4 - APIs On Rails: Add pagination to an API

#1 - Rails on Docker: Create and run Rails app using Docker

------------------------------------------------------------------------

Docker rails template:

Copy of commands:

Reference:

------------------------------------------------------------------------

Author:

Рекомендации по теме