adobe / adobe/aio-cli-plugin-runtime
creating apis does not work via cli command
- Ngôn ngữ chính
- JavaScript
- Star
- 21
- Fork
- 33
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
`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
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện `aio rt:api:create /base-1 /relative-1 get generic --response-type http` và so sánh kết quả của nó với deployment `app.config.yaml` đang hoạt động. Theo dõi entry point tạo API của CLI để xác định lý do URL `/apis/YOUR_NAMESPACE/base-1/relative-1` dự kiến trả về 404; hoàn tất khi URL do CLI tạo có thể được resolve thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100