@gturri I couldn't find the code I had ealier but here's a rough example for you...

@mahadevank@mastodon.social

@gturri I couldn't find the code I had ealier but here's a rough example for you

I used the Jinja2 templating engine to create a template for a curl request and then pass it the info for the request as a json file which has the url, method, form fields, headers etc.

You can templatize the test_request.json file as well and add another layer of jinja2 template rendering to get features like changing the environment from staging to production etc.

codeberg.org/mahadevank/api_re