Example of POST vpz/output in command line with cURL

For the simulator ‘wwdm.vpz’ whose Id is 266, enter the cURL commands in a command line window.

Example illustrating :

  • modifying begin,
  • modifying duration,
  • modifying some parameters by ‘pars’,
  • tree’ as style of presentation,
  • value ‘single’ as plan, or value ‘linear’ in case of multiple simulation
  • value ‘dataframe’ as restype (or ‘matrix’)
  • value ‘all’ as ‘outselect’,
  • with ‘application/json’ as ‘Content-Type’

REQUEST and RESPONSE in case of single plan (single simulation)

REQUEST and RESPONSE in case of linear plan (multiple simulation)

Memo


cURL command line (case of single plan (single simulation)) :

curl -L -H "Content-Type: application/json" -d '{"vpz":266, "duration":6, "begin":2453982.0, "mode":["tree","single","dataframe"], "outselect":"all", "pars":[{"selection_name":"cond_wwdm.A","cname":"cond_wwdm","pname":"A","value":0.0064},{"selection_name":"cond_wwdm.Eb","cname":"cond_wwdm","pname":"Eb","value":1.86}]}' http://erecord.toulouse.inra.fr:8000/vpz/output/

cURL command line (case of linear plan (multiple simulation)) :

curl -L -H "Content-Type: application/json" -d '{"vpz":266, "duration":6, "begin":2453982.0, "mode":["tree","linear","dataframe"], "outselect":"all", "pars":[{"selection_name":"cond_wwdm.A","cname":"cond_wwdm","pname":"A","value":"[0.0064,0.0065,0.0066]"},{"selection_name":"cond_wwdm.Eb","cname":"cond_wwdm","pname":"Eb","value":"[1.84,1.85,1.86]"}]}' http://erecord.toulouse.inra.fr:8000/vpz/output/

(rq : or with "matrix" instead of "dataframe")