Fix for rest api query to support predefined APIs (#267)

This commit is contained in:
Navaneeth Pk 2021-06-17 12:29:03 +05:30 committed by GitHub
parent 03e42fa844
commit c55f7af18b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,11 @@ class RestapiQueryService
def process
url = options['url']
if data_source
url = "#{source_options['url']}#{url}"
end
method = options['method'] || 'GET'
headers = (options['headers'] || []).reject { |header| header[0].empty? }
headers = headers.to_h