Modification
This fork is intended to make the swagger template customizable by externalizing the directive templates from the main js file.
##angular-swagger
This module provides a simple, minimal interface for reading Swagger documentation.
The interface is built using ordinary Bootstrap components, so you should find it very easy to theme and style.
Dependencies
This requires AngularJS. In addition, you will need:
Installation
-
Install with bower using
bower install ng-swagger-ui
-
Include
ng-swagger-ui.js
, which should be located inbower_components/ng-swagger-ui
-
Include
bootstrap.min.css
(which should be inbower_components/bootstrap/dist/css
) -
Include
ui-bootstrap-tpls.min.js
(inbower_components/angular-bootstrap
) -
Include
showdown.js
(inbower_components/showdown/compressed
) -
Add
angular-swagger
as a module dependency to your app.
Usage
Simply create the following element
<swagger-apis url='path/to/swagger' />
where path/to/swagger
is the location of your swagger documentation (usually /api-docs/
)