Skip to content

fix: include URL in api list --json output#404

Open
shazron wants to merge 3 commits intomasterfrom
fix/api-list-json-url
Open

fix: include URL in api list --json output#404
shazron wants to merge 3 commits intomasterfrom
fix/api-list-json-url

Conversation

@shazron
Copy link
Copy Markdown
Member

@shazron shazron commented Apr 13, 2026

Summary

  • Fixes aio rt api list --json does not show the URL #388aio rt api list --json was not showing the API URL
  • The --json output preserves the existing apidoc JSON structure unchanged
  • The x-openwhisk.url field (previously always "not-used") is now populated with the actual gateway URL built from gwApiUrl + path

Test plan

  • Run npm test -- --testPathPattern="api/list" — all tests pass
  • Verify aio rt api list --json output retains the apidoc structure with x-openwhisk.url now set to the real URL

🤖 Generated with Claude Code

Fixes #388 - the --json flag was outputting only `apidoc` (missing the
gateway URL). Now outputs the same processed array as the table view,
which includes the URL built from `gwApiUrl`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

shazron and others added 2 commits April 13, 2026 18:15
Fixes #388 - keeps the apidoc JSON structure unchanged but updates the
x-openwhisk.url field (previously always "not-used") to the actual
gateway URL built from gwApiUrl + path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aio rt api list --json does not show the URL

1 participant