Skip to content

Commit

Permalink
Excludes header parameters in remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Arul- committed Jul 3, 2021
1 parent 72b5ae2 commit d927d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ public static function addAPIClass($className, $resourcePath = '', $version = 1)
strpos($url, ':' . $p['name']);
if ($inPath) {
$copy['metadata']['param'][$i][$dataName]['from'] = 'path';
} elseif (isset($p[$dataName]['from']) && 'header' === $p[$dataName]['from']) {
continue;
} elseif ($httpMethod === 'GET' || $httpMethod === 'DELETE') {
$copy['metadata']['param'][$i][$dataName]['from'] = 'query';
} elseif (empty($p[$dataName]['from']) || $p[$dataName]['from'] === 'path') {
Expand Down

0 comments on commit d927d10

Please sign in to comment.