adobe / adobe/aio-cli-plugin-runtime
creating apis does not work via cli command
- Dominant language
- JavaScript
- Stars
- 21
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
`aio rt:api:create /base-1 /relative-1 get generic --response-type http`
Even after waiting 5 mins, the URL results in a 404.
The URL should be in the form https://adobeioruntime.net/apis/YOUR_NAMESPACE/base-1/relative-1
Deploying the same api via `app.config.yaml` works:
```yaml
application:
actions: actions
web: web-src
runtimeManifest:
packages:
test-app:
license: Apache-2.0
actions:
generic:
function: actions/generic/index.js
web: 'yes'
runtime: nodejs:18
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: false
final: true
apis:
my-api-name:
base-1:
relative-1:
generic:
method: get
response: http
```
Contributor guide
Research direction
Reproduce `aio rt:api:create /base-1 /relative-1 get generic --response-type http` and compare its result with the working `app.config.yaml` deployment. Trace the CLI API creation entry point to determine why the expected `/apis/YOUR_NAMESPACE/base-1/relative-1` URL returns 404; done means the CLI-created URL resolves successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100