You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But adding a set of default headers would be nice, currently I have to add this always when calling the api operation:
let requestHeaders: any = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
myApi.myOperation(myParam1, myParam2, requestHeaders)
.then(...);
I saw that there were some investigations in Go language but not in typescript-fetch.
With the current situation I have to wrap each operation in a separate service api class, which is not so nice (especially to maintain these operations etc.)
Is there a way?
The text was updated successfully, but these errors were encountered:
Code-gen language: typescript-fetch
In Configuration I can only set the following attributes:
But adding a set of default headers would be nice, currently I have to add this always when calling the api operation:
I saw that there were some investigations in Go language but not in typescript-fetch.
With the current situation I have to wrap each operation in a separate service api class, which is not so nice (especially to maintain these operations etc.)
Is there a way?
The text was updated successfully, but these errors were encountered: