-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e65e137
commit 6d4a3cb
Showing
6 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta { | ||
name: Parse Template with Structures | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{ API_URL }}/parse | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"template": "structures:\n person:\n - name: Name\n type: text\n description: Name of the person\n - name: Admin\n type: boolean\n description: Is the person an admin\nvariables:\n- name: Users\n type: person[]\n value:\n - Admin: true\n Name: Marvin\n - Admin: false\n Name: Test\n - Admin: false\n Name: Test2\n - Admin: true\n Name: Test3\ntemplate: \"You have added the following users:\n\{{ range .Users }}\n- \{{ .Name }} is an admin: \{{ .Admin }}\n\{{ end }}\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vars { | ||
API_URL: http://localhost:8080/api/v1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vars { | ||
API_URL: https://api.gttp.dev/api/v1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters