mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Fix for rest api query to support predefined APIs (#267)
This commit is contained in:
parent
03e42fa844
commit
c55f7af18b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue