undefinedor/smart-rest

A smart rest function for yii2

0.0.1 2019-07-01 08:26 UTC

This package is auto-updated.

Last update: 2024-11-29 06:20:26 UTC


README

Purpose

The controller of yii\rest\urlRule must be set. So you have to set this property when you add a controller. This project sloved it.

Installation

The preferred way to install this extension is through Composer .

composer require undefinedor/smart-rest

Usage

 'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' => true,
            'rules' => [
                ['class' => 'SmartRest\UrlRule'],
            ],
        ],