adobe / adobe/aio-cli-plugin-runtime
creating apis does not work via cli command
- 主要语言
- JavaScript
- 星标
- 21
- 派生
- 33
- PR 合并指标
- 30 天内没有已合并 PR
描述
`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
```
贡献指南
调研方向
重现 `aio rt:api:create /base-1 /relative-1 get generic --response-type http`,并将其结果与正常工作的 `app.config.yaml` 部署进行比较。跟踪 CLI API 创建入口,以确定预期的 URL `/apis/YOUR_NAMESPACE/base-1/relative-1` 返回 404 的原因;当 CLI 创建的 URL 能够成功解析时即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100