undefinedor/smart-rest A smart rest function for yii2

SmartRest

  1. Purpose
  2. Installation
  3. Usage

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'],
            ],
        ],

0 0
1 follower
4 downloads
Yii Version: 2.0
License: MIT
Category: Others
Tags: router
Developed by: 蛋蛋
Created on: Jan 20, 2020
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions