Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change PUT by PATCH
  • Loading branch information
rodrigm committed Jan 26, 2016
1 parent 5d9c47b commit e007715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extractor/ApiDocExtractor.php
Expand Up @@ -322,8 +322,8 @@ protected function extractData(ApiDoc $annotation, Route $route, \ReflectionMeth
$parameters = $this->clearClasses($parameters);
$parameters = $this->generateHumanReadableTypes($parameters);

if ('PUT' === $annotation->getMethod()) {
// All parameters are optional with PUT (update)
if ('PATCH' === $annotation->getMethod()) {
// All parameters are optional with PATCH (update)
array_walk($parameters, function ($val, $key) use (&$parameters) {
$parameters[$key]['required'] = false;
});
Expand Down

0 comments on commit e007715

Please sign in to comment.