Tip |
---|
This guide uses version 1.0.0 of the BuyMoreBillCalculateRESTAPI asset, which you searched and retrieved in Searching for an Asset in Publisher. |
...
- Stop the WSO2 G-Reg server if it is already running.
- Navigate to the corresponding
asset.js
file of the respective asset as follows: For Swagger:
<G-Reg_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/swagger/asset.js
For WSDL:
<G-Reg_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/wsdl/asset.js
For WADL:
<G-Reg_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/wadl/asset.js
For Policy:
<G-Reg_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/policy/asset.js
For Schema:
<G-Reg_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/assets/schema/asset.js
...
js
Un-comment the following bit of code in the corresponding
asset.js
file:Code Block language js // Following is to remove the edit button in the detail page since for asset types // wsdl, wadl, swagger, policy, schema, the edit operations are not allowed for(var index = 0; index < page.leftNav.length; index++) { var button = page.leftNav[index]; // if(button.iconClass === "btn-edit") { // page.leftNav.splice(index, 1); // index--; // } if(button.iconClass === "btn-copy") { page.leftNav.splice(index, 1); index--; } }