TreeGateway / tree-gateway

This is a full featured and free API Gateway
http://treegateway.com
MIT License
192 stars 42 forks source link

Node SDK is wrong #136

Open danielo515 opened 6 years ago

danielo515 commented 6 years ago

Hello,

I really want to use tree-gateway, it seems super promising. However, the documentation (at least about the sdk) is wrong.

First, the requires are wrong:

const SDK = require('tree-gateway/admin/config/sdk')
const utils = require('tree-gateway/utils/config');

They should be:

const SDK = require('tree-gateway/dist/admin/config/sdk')
const utils = require('tree-gateway/dist/utils/config');

Second, what it is available on admin/config/sdk is a constructor, not an SDK with an initialize function, and it requires a swagger client that I don't know how to provide.

Could you please update the documentation or tell me the correct way of using the SDK so I can make a PR updating them ?

I would love to use this on production, but if the SDK does not work I'm afraid it will not be an option.

Regards