Search by

webpress / review

NightFury

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.

Package info

github.com/webpress-vn/review

pkg:composer/webpress/review

Statistics

Installs: 1 125

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

3.1.87 2021-10-05 08:30 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}