stable

Clone or download

Read-only

request #11363: Method arguments should map the @url definition

If in a REST resource you declare a route with a parameter, for example @url OPTIONS {id}, then the signature of the method should also have $id parameter. If this is not the case, then a warning is displayed, polluting the generation of the swagger.json and forcing developers to refresh the Tuleap page that is using REST API. This does not occurs on production since in this case display_errors is off. To test: run make dev-clear-cache and access to the API explorer, you don't have red error message and available routes are displayed without having to refresh the page. Change-Id: I61d452e632de90182e6c85cec6d7c3b90048118b Note: This needs https://gerrit.tuleap.net/10987 for Tuleap sources

Modified Files

Name
M include/TestManagement/REST/v1/ExecutionsResource.class.php +2 −2 Go to diff View file