DEV Community

Discussion on: Opine Tutorial Part 1: Express for Deno

Collapse
 
iampeters profile image
Peters Chikezie

can it be integrated with swagger docs, I see swagger is available with Oak

Collapse
 
craigmorten profile image
Craig Morten

Ooh didn’t know that had supported that for Oak - do you have a link? I can’t find anything concrete but my Googling skills may be failing me πŸ™ƒ it certainly can be added if it doesn’t already work!

For instance, the deno_swagger_doc module should be immediately compatible. If you’re talking about generating server code from a swagger doc, that will take a little bit of work likely.

Collapse
 
iampeters profile image
Peters Chikezie • Edited

Deno_swagger_doc is the module I saw. The example is in Koa. I have tried to use opine to replicate it but I keep getting 404 error. This error is related to swagger_json. I will post the error here when I get to my laptop. I want users to be served the swagger docs when the hit / on my test deno server.

Thread Thread
 
craigmorten profile image
Craig Morten

I will look to add an example to the repo at some point later when have some free time!

Thread Thread
 
iampeters profile image
Peters Chikezie

Great... I'm looking forward to it.

Thread Thread
 
craigmorten profile image
Craig Morten

Sorry for the delay - check out the new swagger example here --> github.com/asos-craigmorten/opine/...

Thread Thread
 
iampeters profile image
Peters Chikezie

Great... Let me take a look