diff --git a/.gitignore b/.gitignore index 799ce4a..da6a067 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /vendor/ -\.php-cs-fixer\.cache +*.cache .phpunit.result.cache composer.lock /.idea diff --git a/src/Client/Client.php b/src/Client/Client.php index 77a96b2..44d50e8 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -25,7 +25,7 @@ public function __construct( ) { $this->client = $client ?? new GuzzleClient( [ - 'base_uri' => $this->configProvider->baseUrl, + 'base_uri' => rtrim($this->configProvider->baseUrl, '/') . '/', 'timeout' => self::TIMEOUT, 'connect_timeout' => self::CONNECTION_TIMEOUT ] diff --git a/src/Request/FindPointsRequest.php b/src/Request/FindPointsRequest.php index 724098a..98db2c3 100644 --- a/src/Request/FindPointsRequest.php +++ b/src/Request/FindPointsRequest.php @@ -6,7 +6,7 @@ class FindPointsRequest implements Request { - private const ENDPOINT = '/points'; + private const ENDPOINT = 'points'; private const HTTP_METHOD = 'GET'; private array $searchCriteria;