Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

cannot create api with path parameters #1009

Open
@rabbah

Description

@rabbah

Trying to follow the book API example https://github.com/apache/incubator-openwhisk/blob/master/docs/apigateway.md#exposing-multiple-web-actions

> fsh api create -n "Book Club" /club /books/{isbn} get getBooks --response-type http
API creation failure: The action must use a response type of '.http' in order to receive the path parameters

I'm using this action as a mock of getBooks

function main({name:name='Serverless API'}) {
    return {
      body: {payload:`Hello world ${name}`},
      statusCode: 200,
      headers:{ 'Content-Type': 'application/json'}
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions