emonney / QuickApp

ASP.NET Core / Angular startup project template with complete login, user and role management. Plus other useful services for Quick Application Development
https://www.ebenmonney.com/quickapp
MIT License
1.26k stars 594 forks source link

Added Swagger UI Client Code Snippets #66

Closed codestellar closed 2 years ago

codestellar commented 6 years ago

Added a plugin to show client side code snippets in Swagger UI image

emonney commented 6 years ago

swaggerui-snippets.bundle.js is a bundled file. The source is necessary for debugging/support/maintenance

codestellar commented 6 years ago

@emonney Do you want me to add this in dotnet build pipeline? Generating the minified file is not required each time. As the swagger UI is not going to change, This is just another plugin to extend swagger UI. I can still add code if you want. https://www.npmjs.com/package/swaggerui-snippets

balapkm commented 5 years ago

Can you please example for JS from swagger json

codestellar commented 5 years ago

@balapkm Help me understand what are you looking for?

dsoltesz commented 4 years ago

this request doesn't work as it give a 404 for finding the bundle. Also you have a dependency on swagger-snippet...this package has been renamed to openapi-snippet as well. Please update the PR so it works with the latest code. Also, package.json should be updated to that the swaggerui-snippets package is available