swagger-ui

WebJar for swagger-ui

License

License

Categories

Categories

Github Development Tools Version Controls Swagger Program Interface REST Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-jensoleg-swagger-ui
Last Version

Last Version

2.1.8-M1
Release Date

Release Date

Type

Type

jar
Description

Description

swagger-ui
WebJar for swagger-ui
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jensoleg/swagger-ui

Download github-com-jensoleg-swagger-ui

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-jensoleg-swagger-ui/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-jensoleg-swagger-ui</artifactId>
    <version>2.1.8-M1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-jensoleg-swagger-ui/
implementation 'org.webjars.npm:github-com-jensoleg-swagger-ui:2.1.8-M1'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-jensoleg-swagger-ui/
implementation ("org.webjars.npm:github-com-jensoleg-swagger-ui:2.1.8-M1")
'org.webjars.npm:github-com-jensoleg-swagger-ui:jar:2.1.8-M1'
<dependency org="org.webjars.npm" name="github-com-jensoleg-swagger-ui" rev="2.1.8-M1">
  <artifact name="github-com-jensoleg-swagger-ui" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-jensoleg-swagger-ui', version='2.1.8-M1')
)
libraryDependencies += "org.webjars.npm" % "github-com-jensoleg-swagger-ui" % "2.1.8-M1"
[org.webjars.npm/github-com-jensoleg-swagger-ui "2.1.8-M1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm » shred jar 0.8.10
org.webjars.npm : btoa jar 1.1.1
org.webjars.npm : swagger-client jar 2.1.9-M1

Project Modules

There are no modules declared in this project.

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.

Versions

Version
2.1.8-M1