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:
parent
28d293b6f9
commit
86d79584f9
13
README.md
13
README.md
|
@ -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).
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 770 B |
Binary file not shown.
Before Width: | Height: | Size: 9.0 KiB |
Loading…
Reference in New Issue