How to add modules in Apigee Edge node proxy

Not applicable

Here is the scenario:

I am trying a node proxy in edge. I believe the platform itself has those modules viz., argo, express, usergrid etc. supporting the proxy

So what if I want to add new module? How can I add it in the edge so that I can make use of it? I have not come across any material which resolves this.

Please note I am not using apigee127 or swagger. I am creating the proxy online within Edge platform.

Solved Solved
0 3 1,094
1 ACCEPTED SOLUTION

Hi @Gaurav Vishwas Joshi I typically use the apigee node-tool as documented here http://apigee.com/docs/api-services/content/deploying-standalone-nodejs-app .

Also you can use the API documented here to install a module in an Apigee org.

View solution in original post

3 REPLIES 3

Hi @Gaurav Vishwas Joshi I typically use the apigee node-tool as documented here http://apigee.com/docs/api-services/content/deploying-standalone-nodejs-app .

Also you can use the API documented here to install a module in an Apigee org.

adas
New Member

@Gaurav Vishwas Joshi

You can run npm commands as a management api call for a given apiproxy and revision. You need to list down the dependencies in the package.json file with out without the exact module version. When you invoke the npm api with command=install, it would download those dependency packages from the npm registry and add it under node modules. You can refer to the API documented here to run npm commands using management api calls.

For example if you run the following command it would tell you what are the missing dependencies:

curl -v https://api.enterprise.apigee.com/v1/organizations/{org_name}/apis/{api_name}/revisions/{revision_nu...

You can then call the following command to install the missing dependencies

curl -v https://api.enterprise.apigee.com/v1/organizations/{org_name}/apis/{api_name}/revisions/{revision_nu... -X POST -d 'command=install'

Please note that you would need to deploy the proxy after running the install command so that the dependency modules are picked up by your api proxy.

brinda
New Member

Hi,

This doesnt work for me. I am trying to add SOAP module for my node.js proxy but it doesnt work . Do you know any other way to add a module manually?

Note: I dont have enterprise account.