diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj index dc5de9d..a3a208e 100644 --- a/Rest.Net/Rest.Net.csproj +++ b/Rest.Net/Rest.Net.csproj @@ -17,7 +17,7 @@ MontoyaTech.Rest.Net MontoyaTech.Rest.Net True - 1.8.3 + 1.8.4 Logo_Symbol_Black_Outline.png diff --git a/Rest.Net/RestJavascriptClientGenerator.cs b/Rest.Net/RestJavascriptClientGenerator.cs index 98b085d..a625286 100644 --- a/Rest.Net/RestJavascriptClientGenerator.cs +++ b/Rest.Net/RestJavascriptClientGenerator.cs @@ -626,7 +626,7 @@ namespace MontoyaTech.Rest.Net //Generate request doc if any if (routeRequest != null) - writer.WriteLine($"@param {{{(routeRequest.Dynamic ? "Any" : this.GetTypeFullyResolvedName(routeRequest.RequestType))}}} request"); + writer.WriteLine($"@param {{{(routeRequest.Dynamic ? "Any" : this.GetTypeFullyResolvedName(routeRequest.RequestType))}}} body"); //Generate response doc if any if (routeResponse != null) @@ -655,7 +655,7 @@ namespace MontoyaTech.Rest.Net if (routeRequest != null) { writer.WriteSeparator(); - writer.Write("request"); + writer.Write("body"); } if (routeResponse != null && routeResponse.Parameter) @@ -721,16 +721,16 @@ namespace MontoyaTech.Rest.Net if (routeRequest.RequestType.IsAssignableTo(typeof(Stream))) { writer.WriteLine("headers: new Headers({ 'Content-Type': 'application/octet-stream' }),"); - writer.WriteLine("body: request,"); + writer.WriteLine("body: body,"); } else if (routeRequest.Json) { - writer.WriteLine("body: JSON.stringify(request),"); + writer.WriteLine("body: JSON.stringify(body),"); } else { - writer.WriteLine("body: request.toString(),"); + writer.WriteLine("body: body.toString(),"); } }