Skip to content
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

Set baseUrl per request #1633

Open
1 task done
RobinClowers opened this issue Apr 26, 2024 · 0 comments
Open
1 task done

Set baseUrl per request #1633

RobinClowers opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed openapi-fetch Relevant to the openapi-fetch library

Comments

@RobinClowers
Copy link

Description

My app has an API that is per tenant, so I end up having to create a client every time I need to call the API, since the baseUrl varies.

Proposal

Ideally it would be as simple as:

client.GET("/api/region", {
  baseUrl: "https://api.example.com",
})

Checklist

@RobinClowers RobinClowers added enhancement New feature or request help wanted Extra attention is needed openapi-fetch Relevant to the openapi-fetch library labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed openapi-fetch Relevant to the openapi-fetch library
Projects
None yet
Development

No branches or pull requests

1 participant