Skip to content

creating apis does not work via cli command #387

@shazron

Description

@shazron

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions