acacode / acacode/swagger-typescript-api

Can I change client url?

Open
#473 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm using `swagger-typescript-api` with my React app.

When it generates the classes for each endpoint, it sets this path:
![image](https://user-images.githubusercontent.com/29438448/208752334-661e78a4-85a3-4319-9147-6b5dc6c85fde.png)

### Question:
**Is there any way to add a prefix to that endpoint?** So it didn't fetch localhost, but a specific url.
```ts
{
path: `${myUrl}/playlist`
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.