adobe / adobe/aio-cli-plugin-runtime

creating apis does not work via cli command

Open
#387 4 comments 0 reactions 0 assignees View on GitHub
bug
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

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.