Cmd/Ctrl + K

Getting started

codemonster-ru/api-resource turns objects, arrays, collections, and paginated results into consistent JSON API responses.

Basic usage

Wrap domain data in a resource to produce a consistent API representation.

Collections and simple pagination use the same resource class: