Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node SDK is wrong #136

Open
danielo515 opened this issue May 18, 2018 · 0 comments
Open

Node SDK is wrong #136

danielo515 opened this issue May 18, 2018 · 0 comments

Comments

@danielo515
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant