composer require dogado/json-api-server
First you should read the docs of dogado/json-api-common where all basic structures will be explained.
This package contains code taken from enm/json-api-server.
The MIT License (MIT). Please see License File for more information.