Download the PHP package myzero1/yii2-restbyconf without Composer
On this page you can find all versions of the php package myzero1/yii2-restbyconf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-restbyconf
yii2-restbyconf
You can generate restfull api by configuration.
Show time
Installation
The preferred way to install this module is through composer.
Either run
or add
to the require section of your composer.json
file.
Setting
Once the extension is installed, simply modify your application configuration as follows:
In main-local.php
In main.php
Usage
Selectable modules
- Set basePath to "/v2"
- Click the "Preview" button
- Click the "Generate" button, to Generate the codes.
- Set the config files
In main.php
- the
v2
will display to Selectable modules menu asv2 api
- you can click the
v2 api
button to config thev2
- you can add
response_code
param to return characteristic return
The other menu of restbyconfig
- you can click the
Swagger
button to use it. - you can click the
Markdown
button to use it.
Can overwrite classes
- myzero1\restbyconf\components\rest\Helper
- myzero1\restbyconf\components\rest\ApiHelper
- myzero1\restbyconf\components\rest\ApiAuthenticator
- myzero1\restbyconf\components\rest\HandlingHelper
In main.php
change logs
- Add my group
- Carding code
- Multiple responses
TODO
- $modelPost->addRule(['mobile_phone'], 'required', ['message' => '\'{attribute}\':手机号不能为空']);
All versions of yii2-restbyconf with dependencies
PHP Build Version
Package Version
No informations.
The package myzero1/yii2-restbyconf contains the following files
Loading the files please wait ....