-
My use case is to make multiple API calls using a JSON template document with substituted values from each line of a CSV data file. I am on Windows and not a Go programmer but hoping that gomplate will be a suitable tool for this. For example, if I have a file test.json as:
And can make an API call with:
Then, can I make a single call to gomplate with a data file like this
and a template file something like this
and achieve 4 calls to the API? I have spent some time trying various options but have not had any success. Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @safferyj, in general gomplate doesn't support But, if the API was constructed differently and could accept the payload as URL query parameters you could accomplish it by feeding a subpath argument to the |
Beta Was this translation helpful? Give feedback.
-
On Windows, with
and
then
will make the following four distinct POST API calls
|
Beta Was this translation helpful? Give feedback.
On Windows, with
and
then
will make the following four distinct POST API calls