-
-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared URL prefix and placeholder values #465
Labels
Comments
I think this would be great. |
This might be better achieved with the property support described in #163. If/when that's implemented, I think this makes sense. |
Since the 'property support' has not been implemented yet and this is such an old post, I have implemented a PR to add this functionality - #1685 I think this would be very helpful. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an interface with methods like this:
The
tenantKey
is passed in ALL methods, and the/api/tenant/{tenantId}
prefix is common to all methods.Is there a way to somehow share the prefix and placeholder value? e.g. doing something like this:
This way I wouldn't have to pass the
tenantKey
explicitly to all methods.(I realize I could just pass an
HttpClient
with a differentBaseAddress
, but I split my API into separate interfaces, and I'd rather use the sameHttpClient
for all of them)If it's not supported, I'd be willing to submit a PR to add it.
The text was updated successfully, but these errors were encountered: