acacode / acacode/swagger-typescript-api

Can I change client url?

Aperta
#473 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.