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.
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 returnshttps://api.openpix.com.br/api/v1/openpix/charge/brcode/image/{:id}.png?size=1024
when base uri ishttps://api.openpix.com.br/api/v1
My solution was to change requests to use absolute paths, this allows for additional flexibility.