Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	dist/swagger-ui.js
#	dist/swagger-ui.min.js
  • Loading branch information
jensoleg committed May 14, 2016
2 parents e454303 + a6e81dc commit 2b5baca
Show file tree
Hide file tree
Showing 32 changed files with 14,964 additions and 2,796 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ The theme will adapt to screen size and works on tablets and mobile phones.

[![Swagger Theme example](dist/images/Swagger_explorer_min.png)](http://ecs.bobbytech.dk/api)

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

![Swagger JSON editor example](dist/images/json_editor_integration.png)

JSON editor configuration example:

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

Give it a [try](http://swaggerui.herokuapp.com/) and enter your own swagger definition.


Expand Down
8 changes: 4 additions & 4 deletions dist/css/api-explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
background: #ff9a57
}

.swagger-section .form-control.error {
.swagger-section .ui-form-control.error {
border-color: #fd8888;
border-width: 2px
}
Expand Down Expand Up @@ -346,17 +346,17 @@
}
}

.swagger-section .parameter-item .form-control {
.swagger-section .parameter-item .ui-form-control {
width: auto;
max-width: 100%
}

.swagger-section .parameter-item .form-control.body-textarea {
.swagger-section .parameter-item .ui-form-control.body-textarea {
min-height: 100px;
width: 100%
}

.swagger-section .parameter-item select.form-control {
.swagger-section .parameter-item select.ui-form-control {
width: auto
}

Expand Down
Loading

0 comments on commit 2b5baca

Please sign in to comment.