You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to override the baseURL api at runtime depending on the environment configuration.
For exemple : GET '<baseURI>/api/myendpoint'
What happens?
At the moment, the only way to do this is to use a custom HTTP interceptor (https://orval.dev/guides/set-base-url#angular-http-client). This is not a practical solution, as this interceptor will be triggered for ALL my app requests (Orval-generated API or not)
What were you expecting to happen?
A convenient way to override the API URL at the runtime based on another (configuration) service without using a global HTTP interceptor.
There is multiple possibilites :
Override the baseURI using the constructor or a specific setter (i.e. setBaseURI)
Use a custom function / class to override the baseURI
May you have another / better idea on the subject ?
What versions are you using?
Operating System: Windows 11 Package Version: 6.26 Browser Version: N/A
The text was updated successfully, but these errors were encountered:
What are the steps to reproduce this issue?
I need to override the baseURL api at runtime depending on the environment configuration.
For exemple :
GET '<baseURI>/api/myendpoint'
What happens?
At the moment, the only way to do this is to use a custom HTTP interceptor (https://orval.dev/guides/set-base-url#angular-http-client). This is not a practical solution, as this interceptor will be triggered for ALL my app requests (Orval-generated API or not)
What were you expecting to happen?
A convenient way to override the API URL at the runtime based on another (configuration) service without using a global HTTP interceptor.
There is multiple possibilites :
May you have another / better idea on the subject ?
What versions are you using?
Operating System: Windows 11
Package Version: 6.26
Browser Version: N/A
The text was updated successfully, but these errors were encountered: