adobe / adobe/aio-cli-plugin-runtime

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

Open
#340 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
21
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.