Skip to content

Set baseUrl per request #1633

Closed
Closed
@RobinClowers

Description

@RobinClowers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomePRs are welcome to solve this issue!enhancementNew feature or requestgood first issueStraightforward problem, solvable for first-time contributors without deep knowledge of the projectopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions