Merge pull request #208 from appcrew/hotfix/1.0.8_swagger
Swagger: Output swagger description
This commit is contained in:
commit
c3fd4564bf
1 changed files with 2 additions and 1 deletions
3
api.php
3
api.php
|
|
@ -2638,7 +2638,8 @@ class PHP_CRUD_API {
|
|||
if ($this->settings['origin']) {
|
||||
$this->allowOrigin($this->settings['origin'],$this->settings['allow_origin']);
|
||||
}
|
||||
if (!$this->settings['request']) {
|
||||
$currentScriptFilename = basename(__FILE__);
|
||||
if (!$this->settings['request'] || $this->settings['request'] == $currentScriptFilename) {
|
||||
$this->swagger($this->settings);
|
||||
} else {
|
||||
$parameters = $this->getParameters($this->settings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue