Kong / Kong/apiembed

Enhancing the PHP code templates

Open
#18 1 comment 0 reactions 1 assignee Claimed by @ahmadnassri View on GitHub
Dominant language
Pug
Stars
413
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Hello,

very nice tool!

My suggestion:

In case of

``` json
...
"postData": {
"mimeType": "application/x-www-form-urlencoded",
"params" : [
{
"name": "params[IDENTIFIER]",
"value": "DUMMY_ACCOUNT"
},
{
"name": "params[OPERATIONTYPE]",
"value": "create"
},
}
...
```

it would be nice that in the php code to have something like

```
...
CURLOPT_POSTFIELDS => http_build_query([
'params[IDENTIFIER]' => 'DUMMY_ACCOUNT',
'params[OPERATIONTYPE]' => 'create',
])
...
```

instead of

```
...
CURLOPT_POSTFIELDS => "params%5BIDENTIFIER%5D=DUMMY_ACCOUNT¶ms%5BOPERATIONTYPE%5D=create"
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.