Load swagger ui from `swagger-ui` package instead.

Added option `swaggerDistRoot` for specific file overrides.

Conflicts:
	README.md
	example/simple.js
	index.js
	package.json
	public/css/screen.css
	public/images/logo_small.png
	public/index.html
	public/lib/loadSwaggerUI.js
This commit is contained in:
Samuel Reed 2014-07-04 14:28:47 -05:00 committed by Shelby Sanders
parent 28d293b6f9
commit 86d79584f9
9 changed files with 18 additions and 1680 deletions

View File

@ -96,3 +96,16 @@ Options are passed to `explorer(app, options)`.
> Default: Read from package.json
> Sets your API version. If not present, will read from your app's package.json.
=======
> Set the base path for swagger resources.
> Default: `app.get('restAPIRoot')` or `/swagger/resources`.
`swaggerDistRoot`: **String**
> Set a path within your application for overriding Swagger UI files.
> If present, will search `swaggerDistRoot` first when attempting to load Swagger UI, allowing
you to pick and choose overrides.
> See [index.html](public/index.html), where you may want to begin your overrides.
> The rest of the UI is provided by [Swagger UI](https://github.com/wordnik/swagger-ui).

View File

@ -1,4 +1,4 @@
'use strict';
'use strict';
/*!
* Adds dynamically-updated docs as /explorer
*/

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB