acacode / acacode/swagger-typescript-api

Can I change client url?

未關閉
#473 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
4.1k
分支
436
PR 合併指標
30 天內沒有已合併 PR

描述

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`
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。