Proper Ways to Pass Environment Variables in JSON for cURL POST

The best practice to test the request for machine learning API-based service

Xu LIANG
Towards Data Science
3 min readDec 5, 2019

--

Photo by Ousa Chea on Unsplash

TL;DR

The best practice is using a data generation function. Scrolling to the bottom for the detail.

Setup a mock API server for request test

--

--

I’m an engineer focusing on NLP and Data Science. I write stuff to repay the engineer community. You can find me on linkedin.com/in/xu-liang-99356891/