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.

Installs: 1 125

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0

pkg:composer/webpress/review


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}