fixed content type for java client

This commit is contained in:
Tony Tam
2013-08-08 16:05:05 -07:00
parent 17b63b2be8
commit a3f5c0c688
14 changed files with 398 additions and 304 deletions

View File

@@ -47,8 +47,10 @@ public class {{classname}} {
{{#headerParams}}headerParams.put("{{paramName}}", {{paramName}});
{{/headerParams}}
String contentType = "application/json";
try {
String response = apiInvoker.invokeAPI(basePath, path, "{{httpMethod}}", queryParams, {{#bodyParam}}{{bodyParam}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, headerParams);
String response = apiInvoker.invokeAPI(basePath, path, "{{httpMethod}}", queryParams, {{#bodyParam}}{{bodyParam}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, headerParams, contentType);
if(response != null){
return {{#returnType}}({{{returnType}}}) ApiInvoker.deserialize(response, "{{returnContainer}}", {{returnBaseType}}.class){{/returnType}};
}