mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-15 05:53:14 +03:00
Work around _method requirements allowing multiple methods, fixes #87
This commit is contained in:
parent
35b8b9ca40
commit
71f9ec138a
@ -140,6 +140,12 @@
|
|||||||
content = $(this).find('textarea.content').val(),
|
content = $(this).find('textarea.content').val(),
|
||||||
result_container = $('.result', $(this).parent());
|
result_container = $('.result', $(this).parent());
|
||||||
|
|
||||||
|
if (method === 'ANY') {
|
||||||
|
method = 'POST';
|
||||||
|
} else if (method.indexOf('|') !== -1) {
|
||||||
|
method = method.split('|').sort().pop();
|
||||||
|
}
|
||||||
|
|
||||||
var requestFormat = $('#request_format').val();
|
var requestFormat = $('#request_format').val();
|
||||||
var requestFormatMethod = '{{ requestFormatMethod }}';
|
var requestFormatMethod = '{{ requestFormatMethod }}';
|
||||||
if (requestFormatMethod == 'format_param') {
|
if (requestFormatMethod == 'format_param') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user