calinrada/php-apidoc — pull request #11 by montexristos (2014-06-19 12:10:03+00:00)
Title: fixed parameter handling in Sandbox for get requests

First of all Thank you for the great work in this project!

I have made some modifications to enhance the sandbox functionality, feel free to use any of them if you find them useful.

The changes i made are focused in GET requests with restful-like parameters
(ie.` http://example.com/api/get_pets/type/{type}/limit/{limit}/offset/{offset}` )

The issues addressed are:
1) changed regex for matchedParamsInRoute from `/{\w+}$/` to `/{\w+}/g` in order to match all params not only the first
2) created a new variable that keeps the modified url to avoid changing form's action attribute
3) removed matchedParamsInRoute matches from the serialized string to avoid sending them twice in the request
4) removed from the url variable any parameters for which the corresponding input field was empty