diff options
Diffstat (limited to 'qa/qa/runtime/api/request.rb')
-rw-r--r-- | qa/qa/runtime/api/request.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/runtime/api/request.rb b/qa/qa/runtime/api/request.rb index 724b499d32f..b58be354103 100644 --- a/qa/qa/runtime/api/request.rb +++ b/qa/qa/runtime/api/request.rb @@ -34,7 +34,11 @@ module QA # # Returns the relative path to the requested API resource def request_path(path, version: API_VERSION, **query_string) - full_path = ::File.join('/api', version, path) + full_path = if path == '/graphql' + ::File.join('/api', path) + else + ::File.join('/api', version, path) + end if query_string.any? full_path << (path.include?('?') ? '&' : '?') |