mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 20:27:04 +08:00
connection creation template
This commit is contained in:
@ -40,6 +40,12 @@ PAYLOAD = {
|
||||
|
||||
final String kTemplateFormParamsWithoutFile = """
|
||||
PAYLOAD = URI.encode_www_form({\n{% for param in params %} "{{ param.name }}" => "{{ param.value }}",\n{% endfor %}})\n\n
|
||||
""";
|
||||
|
||||
final String kTemplateConnection = """
|
||||
conn = Faraday.new do |faraday|
|
||||
faraday.adapter Faraday.default_adapter{% if hasFile %}\n faraday.request :multipart{% endif %}
|
||||
end\n\n
|
||||
""";
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user