This guide creates a simple but realistic API smoke-test flow using the public data.gov.au CKAN API with:
- 1 setting (
Demo:DataGovApiBaseUrl) - 1 secret (
Demo:DataGovApiKey) - 2 saved commands
- 1 workflow that runs the 2 commands in sequence
- .NET SDK 10+
- BYO CLI installed and available on your
PATH
Quick check:
byo --helpbyo settings set --key Demo:DataGovApiBaseUrl --value https://www.data.gov.au/data/api/3/actionbyo secrets set --key Demo:DataGovApiKey --value public-demo-keybyo commands set --name "Data.gov.au Package Search" --bookmark "Examples/GettingStarted" --shell PowerShell --executable "curl.exe --ssl-no-revoke -H 'X-API-Key: {{Demo:DataGovApiKey}}' '{{Demo:DataGovApiBaseUrl}}/package_search?q=transport&rows=3'"byo commands set --name "Data.gov.au Organization List" --bookmark "Examples/GettingStarted" --shell PowerShell --executable "curl.exe --ssl-no-revoke -H 'X-API-Key: {{Demo:DataGovApiKey}}' '{{Demo:DataGovApiBaseUrl}}/organization_list?limit=10'"Run:
byo workflows set --name "Data.gov.au API Smoke Test" --bookmark "Examples/GettingStarted"When prompted, add steps in this order:
- Message
- Enter message to display:
Starting data.gov.au API smoke test - Color:
Cyan - Wait for Enter:
No
- Enter message to display:
- Execute Command
- Command:
Data.gov.au Package Search - Run asynchronously:
No
- Command:
- Execute Command
- Command:
Data.gov.au Organization List - Run asynchronously:
No
- Command:
- Done - Finish adding steps
byo settings list
byo secrets list
byo commands list
byo workflows listbyo run --target workflow --name "Data.gov.au API Smoke Test" --bookmark "Examples/GettingStarted"The workflow runs immediately and executes both commands in sequence.
You can also use the interactive runner and choose a saved command/workflow from the bookmark hierarchy:
byo run --interactiveOr preselect target type:
byo run --target command
byo run --target workflow