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
When you have to configure many origins at a time with the same value (a very common scenario for "baseUrl", or authentication headers, for example), you have to import all desired origins and iterate over all calling to its "config" method.
This is really annoying because for each origin you use, you have to add the new dependency to your "configurator" piece, and you have to repeat this pattern in every applications.
It would be very useful to export a method for configuring or cleaning groups of Api instances at a time. (Maybe a system based on tags will be very flexible to allow configuring or cleaning only certain subgroups).
@manuelitox I think it can be good idea to expose setters for configuration, if you prefer that syntax, but I think that then we should implement setters for all configuration properties, not only for the tags one.
Maybe it is better to open another issue related to this. Feel free if you agree ;)
When you have to configure many origins at a time with the same value (a very common scenario for "baseUrl", or authentication headers, for example), you have to import all desired origins and iterate over all calling to its "config" method.
This is really annoying because for each origin you use, you have to add the new dependency to your "configurator" piece, and you have to repeat this pattern in every applications.
It would be very useful to export a method for configuring or cleaning groups of
Api
instances at a time. (Maybe a system based on tags will be very flexible to allow configuring or cleaning only certain subgroups).A proposal:
Now, you can configure each api url separately:
To configure authentication:
The text was updated successfully, but these errors were encountered: