aio-cli-plugin-runtime icon indicating copy to clipboard operation
aio-cli-plugin-runtime copied to clipboard

`aio rt api create` allows relpath without a leading slash

Open MichaelGoberling opened this issue 1 year ago • 1 comments

Currently users can run aio rt api create basepath relpath ... and it will succeed, producing an endpoint like https://adobeioruntime.net/apis/namespace/basepathrelpath

On the other hand, wsk requires that relpath begins with a /, to separate the basepath and relpath, and if users don't include it, the command produces an error:

error: Unable to parse api command arguments: 'relpath' must begin with '/'.

We should update aio rt api create to match this wsk behavior

MichaelGoberling avatar Jun 20 '24 14:06 MichaelGoberling

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-3048

aiojbot avatar Jun 20 '24 15:06 aiojbot