A set of restful API classes that offer strict RESTful methods for laravel. Currently in development.
Laravel's out the box RESTful implementation is fairly easy to use, but it is not a strict REST api. This repository offers classes to deliver a true REST implementation that matches the wikipedia definition.
- Simple setup/configuration
- Simple "plug-in" traits and interfaces that quickly add a full set of RESTful responses to a controller
- JSON API compliant responses
- Not implemented/not allowed/data responses available on a per method/route basis
- Easily overrideable by your own code on a per method/route basis
- Suports laravel validation
Via Composer
composer require floor9design/laravel-restful-api
It is recommended you read the background information section:
This is defined in detail in the usage section:
This is defined in detail in the setup section:
Tests under development and are underway.
To run the existing tests:
./vendor/phpunit/phpunit/phpunit
Documentation and coverage can be generated as follows:
./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/
A changelog is generated here:
This software is available under the MIT licence.