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

Documentation and improvement suggestions #1

Open
kristianmandrup opened this issue Sep 12, 2017 · 0 comments
Open

Documentation and improvement suggestions #1

kristianmandrup opened this issue Sep 12, 2017 · 0 comments

Comments

@kristianmandrup
Copy link

kristianmandrup commented Sep 12, 2017

I assume you need to pass the entire API as a single .yaml file.
Would be nice to be able to pass it as an object as well (I did in my fork).

Also would be nice to be able to gradually build up the API per main domain or service. I guess the objects could just be merged into one final API object?

const SwaggerBank = require('swaggerbank');
const api = new SwaggerBank.API()

for (let service of services) {
  api.add(service.docs);
}

api.validateAPI()
.then( () => {
  api.setupMountebankImposter(3000);
})

What do you think?

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