Skip to content

Commit

Permalink
updated controller docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyWendt committed Aug 24, 2015
1 parent 8d072b4 commit 601a031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion documentation/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Extending `\LaraPackage\Api\Http\Controllers\AbstractRestController` provides GET, POST, PUT, PATCH, DELETE routes out of the box.

You need to use the repository and transformer for the controller.

Example usage:

```php
Expand All @@ -11,7 +13,7 @@ use App\v1\Transformer;
use LaraPackage\Api\CollectionHelper;
use LaraPackage\Api\Http\Controllers\AbstractRestController;

class AttributekeysController extends AbstractRestController
class YourController extends AbstractRestController
{

/**
Expand Down

0 comments on commit 601a031

Please sign in to comment.