Browse Source

#178 URI bugfix in params in getRouteResponse() (#179)

Rudie Dirkx 8 years ago
parent
commit
db46be8edc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

+ 1 - 1
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -93,7 +93,7 @@ abstract class AbstractGenerator
         })->collapse()->toArray();
 
         //Changes url with parameters like /users/{user} to /users/1
-        $uri = preg_replace('/{(.*)}/', 1, $uri);
+        $uri = preg_replace('/{(.*?)}/', 1, $uri);
 
         return $this->callRoute(array_shift($methods), $uri, [], [], [], $headers);
     }