File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
jsondoc-sample-springmvc/src/main/webapp
jsondoc-ui/src/main/webapp Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -559,8 +559,10 @@ ol.linenums li {
559
559
headers[" Accept" ] = $ (" #produces input:checked" ).val ();
560
560
561
561
var replacedPath = method .path ;
562
+ var tempReplacedPath = replacedPath; // this is to handle more than one parameter on the url
562
563
$ (" #urlparameters input" ).each (function () {
563
- replacedPath = method .path .replace (" {" + this .name + " }" , $ (this ).val ());
564
+ tempReplacedPath = replacedPath .replace (" {" + this .name + " }" , $ (this ).val ());
565
+ replacedPath = tempReplacedPath;
564
566
});
565
567
566
568
$ (' #testButton' ).button (' loading' );
Original file line number Diff line number Diff line change @@ -559,8 +559,10 @@ ol.linenums li {
559
559
headers[" Accept" ] = $ (" #produces input:checked" ).val ();
560
560
561
561
var replacedPath = method .path ;
562
+ var tempReplacedPath = replacedPath; // this is to handle more than one parameter on the url
562
563
$ (" #urlparameters input" ).each (function () {
563
- replacedPath = method .path .replace (" {" + this .name + " }" , $ (this ).val ());
564
+ tempReplacedPath = replacedPath .replace (" {" + this .name + " }" , $ (this ).val ());
565
+ replacedPath = tempReplacedPath;
564
566
});
565
567
566
568
$ (' #testButton' ).button (' loading' );
You can’t perform that action at this time.
0 commit comments