djacobus
2/2/2017 - 1:47 PM

Curl to loopback

Curl to loopback

# This code will do a simple POST using a json file stored locally to loopback api.

curl -XPOST 
-H 'Content-Type:application/json' 
-H 'Accept: application/json' 
--data-binary @ul_physicalentities.json 
http://localhost:3000/api/physicalentities -v -s | json