Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 771 Bytes

File metadata and controls

39 lines (35 loc) · 771 Bytes

Example HTTP Requests

Example 1. View global function code
curl request
curl -X GET "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/appcode"
Example 2. View scoped function code
curl request
curl -X GET "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/appcode?bucket=bulk&scope=data"
Example 3. Save global function code to file
curl request
curl -X GET "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/appcode" \
  -o my_function.json
Example 4. Save scoped function code to file
curl request
curl -X GET "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/appcode?bucket=bulk&scope=data" \
  -o my_function.json