webpress / review
There is no license information available for the latest version (3.1.87) of this package.
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
3.1.87
2021-10-05 08:30 UTC
Requires
- webpress/core: ^3.1
Requires (Dev)
- orchestra/testbench: 5.0.0
- phpunit/phpunit: 8.5.13
- spatie/phpunit-watcher: 1.23.0
This package is auto-updated.
Last update: 2022-06-17 10:32:31 UTC
README
Configuration
Model and Transformer
You can use your own model and transformer class by modifying the configuration file config\review.php
'models' => [ 'review' => App\Entities\Review::class, ], 'transformers' => [ 'review' => App\Transformers\ReviewTransformer::class, ],
Auth middleware
Configure auth middleware in configuration file config\review.php
'auth_middleware' => [ 'admin' => [ 'middleware' => 'jwt.auth', 'except' => ['index'], ], ],
Routes
The api endpoint should have these format:
| Verb | URI |
|---|---|
| GET | reviews/{resource_type} |
| GET | reviews/{resource_type}/{id} |
| POST | reviews/{resource_type} |