apache / apache/openwhisk-cli

API URL with templated parameters in query parameters parsed incorrectly.

Open
#306 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
109
Forks
98
PR merge metrics
No merged PRs in 30d

Description

User has reported an issue creating an API when including template parameters in both path and query URL parameters, e.g.

```
wsk api create -n "PersonalDetailsAPI" /getDetails /name/{myname}/age/{myage}?id={id} get getNameAction --response-type http -i
```

I don't think templates identifers in the query parameters are supported. However, the CLI fails to handle this edge case and parse the second path parameter incorrectly.

The path parameters in the swagger is created as follows...

```json
{ "name": "myage}?id={id" }
```

Looks like the regex is failing to handle this example. Assume the second path parameter should be extracted correctly and anything after ? ignored?

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.