Merge pull request #208 from appcrew/hotfix/1.0.8_swagger

Swagger: Output swagger description
This commit is contained in:
Maurits van der Schee 2017-03-17 01:45:08 +01:00 committed by GitHub
commit c3fd4564bf

View file

@ -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);