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 a global function definition
curl request
curl -X GET "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function"
Example 2. View a scoped function definition
curl request
curl -X GET "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function?bucket=bulk&scope=data"
Example 3. Save a global function definition to file
curl request
curl -X GET "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function" \
  -o my_function.json
Example 4. Save a scoped function definition to file
curl request
curl -X GET "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function?bucket=bulk&scope=data" \
  -o my_function.json