Can I use nodejs-box within Apigee Edge?

Not applicable

i want to implement box.com apis using nodejs module called nodejs-box can this implementation be done in apigee.

0 5 337
5 REPLIES 5

To rephrase, do you want to use box.com APIs and expose a different API design for box.com ?

Apigee will help you add another layer in front of the APIs you want to target. node.js support is also available and would be required if you are doing something that requires a lot of flexibility.

For example, if you are just doing minimal changes to the request/response of existing APIs, you can just use the policy based implementation in Apigee. You can start from any of the Apigee platform samples available.

If you need to say mashup multiple APIs and create a new API, node.js may be required.

Apigee is a great platform for implementing node.js based APIs.

Can we add custom nodejs modules to our api proxy? nodejs-box is node implementation of box.com but still not supported by box

Here is the list of core node modules supported by Apigee - http://apigee.com/docs/api-services/content/understanding-edge-support-nodejs-modules

You can create custom modules on top of this and attach them to your API proxy. You just need to follow a certain folder structure as described here - http://apigee.com/docs/api-services/content/adding-nodejs-existing-api-proxy

If your package.json has the module listed in dependencies, you can have Edge retrieve it for you: http://apigee.com/docs/management/apis/post/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revisio...

I've found this to be an easy way to deal with external packages.

Not applicable

You can also use apigeetool to deploy your standalone Node.js apps and leverage the -R option.

The -R option resolves Node.js modules on Apigee Edge at deploy time and is equivalent to running npm install on your project.

apigeetool is available from npm

$ sudo npm install -g apigeetool 

or from Github

$ git clone https://github.com/apigee/apigeetool-node.git