diff --git a/TopModel.Generator.Javascript/AngularApiClientGenerator.cs b/TopModel.Generator.Javascript/AngularApiClientGenerator.cs index f7c28545..9e894e4f 100644 --- a/TopModel.Generator.Javascript/AngularApiClientGenerator.cs +++ b/TopModel.Generator.Javascript/AngularApiClientGenerator.cs @@ -207,10 +207,10 @@ private void WriteEndpoint(Endpoint endpoint, FileWriter fw) } var needResponseType = returnType == "string" || returnType == "Blob" || returnType == "ArrayBuffer"; - var getter = $"this.http.{endpoint.Method.ToLower()}<{returnType}>"; + var getter = $"{endpoint.Method.ToLower()}<{returnType}>"; if (needResponseType) { - getter = $"{endpoint.Method.ToLower()}(`/{fullRoute}`"; + getter = $"{endpoint.Method.ToLower()}"; } fw.Write(2, $@"return {(Config.ApiMode == TargetFramework.ANGULAR_PROMISE ? "lastValueFrom(" : string.Empty)}this.http.{getter}(`/{fullRoute}`"); diff --git a/TopModel.Generator.Javascript/CHANGELOG.md b/TopModel.Generator.Javascript/CHANGELOG.md index 92d8fd28..7a94b868 100644 --- a/TopModel.Generator.Javascript/CHANGELOG.md +++ b/TopModel.Generator.Javascript/CHANGELOG.md @@ -1,4 +1,8 @@ +## 1.0.6 + +- [#389](https://github.com/klee-contrib/topmodel/pull/389) - Prise en compte des returnType Blob et ArrayBuffer Hot fix x2 + ## 1.0.5 - [#389](https://github.com/klee-contrib/topmodel/pull/389) - Prise en compte des returnType Blob et ArrayBuffer Hot fix diff --git a/TopModel.Generator.Javascript/TopModel.Generator.Javascript.csproj b/TopModel.Generator.Javascript/TopModel.Generator.Javascript.csproj index fa622da5..17195b58 100644 --- a/TopModel.Generator.Javascript/TopModel.Generator.Javascript.csproj +++ b/TopModel.Generator.Javascript/TopModel.Generator.Javascript.csproj @@ -10,7 +10,7 @@ ../.nupkg - 1.0.5 + 1.0.6 false JabX;gideruette Générateurs JS/TS pour TopModel