Open MrEldin opened 7 years ago
@MrEldin you'll need to add swagger-ui into your project. Either the static dist or via npm https://www.npmjs.com/package/swagger-ui
Afterwards just serve the static files from the api you're using. In hapi it'd look something like this:
app.register(require('inert'), (err) => {
if (err) {
throw err;
}
app.route({
method: 'GET',
path: '/{param*}',
handler: {
directory: {
path: 'dist'
}
}
});
});
You may also just run the docker container, provided by swagger-ui. See #524 for details.
Hi,
My question is, how to open swagger documentation, to show my frontend team the exact routes that they can use, I thought about this Documentation.
Thanks