From 4d073ec9c17d9432b23ece1e03e63a97207a7fbb Mon Sep 17 00:00:00 2001 From: adityamayukhsom Date: Sat, 30 Mar 2024 20:05:14 +0530 Subject: [PATCH] added templates for package import, url and boundary --- lib/codegen/julia/http.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/codegen/julia/http.dart b/lib/codegen/julia/http.dart index b1d1e96b..0fd60669 100644 --- a/lib/codegen/julia/http.dart +++ b/lib/codegen/julia/http.dart @@ -7,10 +7,18 @@ import 'package:apidash/utils/utils.dart' import 'package:apidash/models/models.dart' show RequestModel; class JuliaHttpClientCodeGen { - final String kTemplateStart = """using HTTP,JSON + final String kTemplateStart = """ +using HTTP{% if hasJson %}, JSON{% endif %} +\n +"""; + final String kTemplateUrl = """ url = "{{url}}" - +\n +"""; + final String kTemplateBoundary = """ +boundary = "{{boundary}}" +\n """; String kTemplateParams = """