May 2025
Intermediate to advanced
270 pages
6h 55m
English
Big applications hold a lot of data. Managing this can be hard, not only from the perspective of the system that "holds" the data but also from the perspective of the consumer. Our example application demonstrates this well. Hit the endpoint api/v1/films/lean. It returns all the customers in our database. You’ll get something like the following in the log:
| | Started GET "/api/v1/films/lean" for ::1 at 2025-02-12 22:43:16 +0100 |
| | Processing by Api::V1::FilmsController#lean as HTML |
| | Film Pluck (18.7ms) SELECT `films`.`id`, `films`.`title` FROM `films` |
| | ↳ app/controllers/api/v1/films_controller.rb:31:in |
| | 'Api::V1::FilmsController#json_response' |
| | Completed 200 OK in 60ms |
| | (Views: 0.1ms | ActiveRecord: ... |
Read now
Unlock full access