woovibr / php-sdk

OpenPix/Woovi PHP SDK
https://developers.openpix.com.br/docs/sdk/php/sdk-php-what-is
MIT License
11 stars 1 forks source link

Remove path from base uri #30

Closed criskell closed 1 year ago

criskell commented 1 year ago

The base URI cannot contain the api path (like /api/v1), as there are endpoints where the api path is not present, as in https://api.openpix.com.br/openpix/charge/brcode/image/{:id}.png?size=1024. Currently returns https://api.openpix.com.br/api/v1/openpix/charge/brcode/image/{:id}.png?size=1024 when base uri is https://api.openpix.com.br/api/v1

My solution was to change requests to use absolute paths, this allows for additional flexibility.