fix(ui): ensure XML and YAML definitions aren't jumbled on AngularJS 1.8.x
MODIFY
manager/ui/war/plugins/api-manager/html/api/api-def.html
manager/ui/war/plugins/api-manager/html/api/api-def.html
</div>
</div>
- <textarea style="width: 100%;"
+ <textarea style="width: 100%; min-height: 300px;"
apiman-i18n-key="enter-api-definition"
id="api-definition"
placeholder="Copy/paste or drag and drop your API Definition in here!"

MODIFY
manager/ui/war/plugins/api-manager/ts/rpc.ts
manager/ui/war/plugins/api-manager/ts/rpc.ts
@@ -274,9 +274,12 @@ _module.factory('ApiDefinitionSvcs', ['$resource', '$http', 'Configuration', '$q
{ organizationId: orgId, apiId: apiId, version: version });
return $http({
method: 'GET',
- url: endpoint
+ url: endpoint,
+ transformResponse: function(data) {
+ return data;
+ }
}).then(
- ok => $q.resolve(JSON.stringify(ok.data)),
+ ok => $q.resolve(ok.data),
failure => $q.reject(failure)
);
},

fix(ui): ensure XML and YAML definitions aren't jumbled on AngularJS 1.8.x