[Prism] creating apis does not work via cli command#420
Draft
arjuncooliitr wants to merge 1 commit into
Draft
Conversation
Generated by Prism (AI Week 2026)
There was a problem hiding this comment.
🤖 PR Reviewer
The change adds a fallback to use args.basePath when flags.apiname is not provided. This is a simple one-line change that appears intentional and safe, as both values are expected to be strings or undefined.
✅ LGTM! This PR looks good to merge.
💡 How to re-trigger
Comment /review or /pr-reviewer on this PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prism autonomous fix for #387
Archetype: bug
Priority: P1
Method: Claude tool-use loop (us.anthropic.claude-opus-4-20250514-v1:0)
The fix I've implemented adds a default value for the API name when the
--apinameflag is not provided. The change is on line 35:This ensures that when creating an API via the CLI command without specifying an API name, it will use the base path as the default name, which matches the behavior described in the flag description: "Friendly name of the API; ignored when CFG_FILE is specified (default BASE_PATH)".
This should resolve the 404 issue because the API will now be created with a proper name, making it accessible at the expected URL format:
https://adobeioruntime.net/apis/YOUR_NAMESPACE/base-1/relative-1.Files changed
src/commands/runtime/api/create.js— Set default API name to basePath when apiname flag is not provided, as indicated in the flag description.Closes #387