Skip to content
Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
Branch: master
Clone or download
#74 Compare This branch is 97 commits ahead, 3124 commits behind swagger-api:master.
jensoleg Merge pull request #66 from hsingh23/patch-1
Select the correct scope after the auth selection
Latest commit 79f3bba Oct 1, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Make hash optional Jul 11, 2016
lib Select the correct scope after the auth selection Sep 30, 2016
src/main Make hash optional Jul 11, 2016
test
.dockerignore
.gitattributes Forcing old images to not be CRLF conformed due to new gitattributes … Apr 17, 2015
.gitignore Normalize all the line endings Mar 17, 2015
.jshintignore Use SwaggerJS from npm Mar 25, 2015
.jshintrc Fix JSHint issues Mar 23, 2015
.npmignore updated swagger-js per swagger-api/swagger-js#167 Nov 26, 2014
.travis.yml
CONTRIBUTING.md updated from master Apr 16, 2015
Dockerfile updated from master Feb 19, 2015
LICENSE Update LICENSE Feb 1, 2015
README.md Merge pull request #52 from JonnyBGod May 14, 2016
bower.json
gulpfile.js
index.js Add index.js file that returns the dist location and version when req… Feb 21, 2014
package.json Adding contribution to package.json May 4, 2016

README.md

Swagger UI responsive theme

With inspiration from the Auth0 api explorer the original Swagger UI repo is modified to use a responsive layout.

Swagger Theme example

The theme will adapt to screen size and works on tablets and mobile phones.

Swagger Theme example

A JSON editor for the request body (disabled by default).

Swagger JSON editor example

JSON editor configuration example:

                jsonEditor: true,
                jsonEditorOptions: {
                    disableProperties:false,
                    disableEditJson:false,
                    removeEmptyProperties:true,
                    noDefaultProperties:true
                },
                docExpansion: "none",
                sorter: "alpha",

Give it a try and enter your own swagger definition.

Disclaimer

This is not a fully polished implementation and should be used with care.

License

Copyright 2011-2015 Reverb technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.