I'm using Guzzle 6 with custom api, I would like to change the URL from http://my.domain.com/test?key1=5&key2=ABC to this http://my.domain.com/test/key1=5&key2=ABC
How can I remove the "?" char between url and first parameter
$endpoint = "http://my.domain.com/test";
$client = new \GuzzleHttp\Client();
$key1= 5;
$key2= ABC;
$response = $client->request('GET', $endpoint, ['query' => [
'key1' => $key1,
'kei2' => $key2
]]);