Skip to content

merge from develop 2.0 for release #1345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Jun 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
37d29df
Add support for GFM syntax in model (schema) descriptions -- relies o…
May 14, 2015
59f53a9
fixes #958
May 14, 2015
6ce834c
fixes #693
May 14, 2015
488611a
508 Fixes
bdkosher May 15, 2015
2bed4ff
Merge pull request #2 from swagger-api/master
xamelion May 16, 2015
9688af9
fixed: REFACTOR handleFileUpload
xamelion May 16, 2015
8883821
remove fileupload function
xamelion May 16, 2015
bcf52d3
updated validator badge logic per #1299
fehguy May 19, 2015
0ad8c74
Update README.md
webron May 26, 2015
6cfa818
curl hack to showcase curl output in the swagger-ui
shawngong May 26, 2015
c0ea250
Update translator.js
bnupaladin May 27, 2015
d99c6ce
rewrote using asCurl
shawngong May 27, 2015
162cd53
use $.text instead of $.html for showMessage and onFailure
ponelat Jun 1, 2015
1ef90c4
rewrote into source files, generate using gulp
shawngong Jun 2, 2015
559b179
rebuilt
fehguy Jun 4, 2015
f8269da
Merge branch 'ponelat-fix/default-boolean' into develop_2.0
fehguy Jun 4, 2015
8c7997a
merged
fehguy Jun 4, 2015
ab8d1f4
Merge branch 'nprdm-feature/GFM_descriptions' into develop_2.0
fehguy Jun 4, 2015
eae5dd3
merged
fehguy Jun 4, 2015
3b58cc8
Merge branch 'nprdm-feature/hashchange' into develop_2.0
fehguy Jun 4, 2015
fc6ad99
merged
fehguy Jun 4, 2015
a8e2f27
Merge branch 'nprdm-feature/request_headers' into develop_2.0
fehguy Jun 4, 2015
5a73c3d
rebuilt
fehguy Jun 4, 2015
8ab141a
Merge branch 'develop_2.0' of ssh://github.com/bdkosher/swagger-ui in…
fehguy Jun 4, 2015
0e2102d
Merge branch 'bdkosher-develop_2.0' into develop_2.0
fehguy Jun 4, 2015
62afd58
merged
fehguy Jun 4, 2015
ac787d0
rebuilt
fehguy Jun 4, 2015
58dadc6
rebuilt
fehguy Jun 4, 2015
2e396c1
Merge branch 'shawngong-master' into develop_2.0
fehguy Jun 4, 2015
e932151
Merge pull request #1316 from bnupaladin/develop_2.0
fehguy Jun 4, 2015
9e9ca13
merged
fehguy Jun 4, 2015
3bd4edd
Merge branch 'ponelat-fix/xss-index-html' into develop_2.0
fehguy Jun 4, 2015
1f6d89c
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-ui into …
fehguy Jun 4, 2015
9ba75c0
fix for lint errors
fehguy Jun 4, 2015
a126c17
fixed support for default values in param_list
ponelat Jun 4, 2015
c4919c3
Merge pull request #1227 from ponelat/fix/default-boolean
fehguy Jun 4, 2015
9b8d663
removed unused bootstrap.min.js file
shawngong Jun 4, 2015
c29e582
Merge pull request #1339 from shawngong/master
webron Jun 4, 2015
81ff9ee
finish removing bootstrap.min entirely
ponelat Jun 4, 2015
7421111
Merge pull request #1341 from ponelat/fix/completely-remove-bootstrap…
webron Jun 4, 2015
26618ba
Updated License
webron Jun 4, 2015
57327f5
Updated ToS
webron Jun 4, 2015
f3e7bee
Updated project location
webron Jun 4, 2015
dfab1df
remove dead code: show-wordnik-dev
ponelat Jun 5, 2015
26ac3af
Merge pull request #1342 from ponelat/fix/remove-dead-code
webron Jun 5, 2015
a4124fb
Update swagger-ui to reuse client authorizations properly
whitlockjc Jun 5, 2015
7cc1a36
updated version
fehguy Jun 5, 2015
c7e0770
removed logging
fehguy Jun 6, 2015
5ee553e
removed extra tag
fehguy Jun 6, 2015
6738810
updated versions, rebuilt
fehguy Jun 6, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
# swagger-ui-builder - https://github.com/wordnik/swagger-ui/
# swagger-ui-builder - https://github.com/swagger-api/swagger-ui/
# Container for building the swagger-ui static site
#
# Build: docker build -t swagger-ui-builder .
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2015 Reverb Technologies, Inc.
Copyright 2015 SmartBear Software

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Swagger Specification has undergone 4 revisions since initial creation in 20

Swagger UI Version | Release Date | Swagger Spec compatibility | Notes | Status
------------------ | ------------ | -------------------------- | ----- | ------
2.1.1-M2 | 2015-04-16 | 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-ui) |
2.1.1 | 2015-06-06 | 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-ui) |
2.0.24 | 2014-09-12 | 1.1, 1.2 | [tag v2.0.24](https://github.com/swagger-api/swagger-ui/tree/v2.0.24) |
1.0.13 | 2013-03-08 | 1.1, 1.2 | [tag v1.0.13](https://github.com/swagger-api/swagger-ui/tree/v1.0.13) |
1.0.1 | 2011-10-11 | 1.0, 1.1 | [tag v1.0.1](https://github.com/swagger-api/swagger-ui/tree/v1.0.1) |
Expand Down Expand Up @@ -96,8 +96,9 @@ operationsSorter | Apply a sort to the operation list of each API. It can be 'al
onComplete | This is a callback function parameter which can be passed to be notified of when SwaggerUI has completed rendering successfully.
onFailure | This is a callback function parameter which can be passed to be notified of when SwaggerUI encountered a failure was unable to render.
highlightSizeThreshold | Any size response below this threshold will be highlighted syntactically, attempting to highlight large responses can lead to browser hangs, not including a threshold will default to highlight all returned responses.
supportedSubmitMethods | An array of of the HTTP operations that will have the 'Try it out!` option. An empty array disables all operations. This does not filter the operations from the display.
supportedSubmitMethods | An array of of the HTTP operations that will have the 'Try it out!' option. An empty array disables all operations. This does not filter the operations from the display.
oauth2RedirectUrl | OAuth redirect URL
showRequestHeaders | Whether or not to show the headers that were sent when making a request via the 'Try it out!' option. Defaults to `false`.

* All other parameters are explained in greater detail below

Expand Down Expand Up @@ -228,7 +229,7 @@ Plsee see [releases](https://github.com/swagger-api/swagger-ui/releases) for cha

## License

Copyright 2011-2015 Reverb technologies, Inc.
Copyright 2011-2015 SmartBear Software

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swagger-ui",
"main": "dist/index.html",
"version": "2.1.5-M2",
"version": "2.1.0",
"authors": [
"Mohsen Azimi <me@azimi.me>"
],
Expand All @@ -13,7 +13,7 @@
"Swagger",
"API"
],
"license": "Copyright 2015 Reverb Technologies, Inc.",
"license": "Copyright 2015 SmartBear Software",
"homepage": "http://swagger.io",
"private": true,
"ignore": [
Expand Down
11 changes: 11 additions & 0 deletions dist/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,17 @@
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName {
font-weight: bold;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:first-child,
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:last-child {
display: inline;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:not(:first-child):before {
display: block;
content: '';
}
.swagger-section .swagger-ui-wrap .model-signature .description span:last-of-type.propDesc.markdown > p:only-child {
margin-right: -3px;
}
.swagger-section .swagger-ui-wrap .model-signature .propName {
font-weight: bold;
}
Expand Down
11 changes: 11 additions & 0 deletions dist/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,17 @@
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName {
font-weight: bold;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:first-child,
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:last-child {
display: inline;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:not(:first-child):before {
display: block;
content: '';
}
.swagger-section .swagger-ui-wrap .model-signature .description span:last-of-type.propDesc.markdown > p:only-child {
margin-right: -3px;
}
.swagger-section .swagger-ui-wrap .model-signature .propName {
font-weight: bold;
}
Expand Down
250 changes: 250 additions & 0 deletions dist/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
.swagger-section #header a#logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo.png) no-repeat left center;
padding: 20px 0 20px 40px;
}
#text-head {
font-size: 80px;
font-family: 'Roboto', sans-serif;
color: #ffffff;
float: right;
margin-right: 20%;
}
.navbar-fixed-top .navbar-nav {
height: auto;
}
.navbar-fixed-top .navbar-brand {
height: auto;
}
.navbar-header {
height: auto;
}
.navbar-inverse {
background-color: #000;
border-color: #000;
}
#navbar-brand {
margin-left: 20%;
}
.navtext {
font-size: 10px;
}
.h1,
h1 {
font-size: 60px;
}
.navbar-default .navbar-header .navbar-brand {
color: #a2dfee;
}
/* tag titles */
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
color: #393939;
font-family: 'Arvo', serif;
font-size: 1.5em;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
color: black;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
color: #525252;
padding-left: 0px;
display: block;
clear: none;
float: left;
font-family: 'Arvo', serif;
font-weight: bold;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #0A0A0A;
}
.container1 {
width: 1500px;
margin: auto;
margin-top: 0;
background-image: url('../images/shield.png');
background-repeat: no-repeat;
background-position: -40px -20px;
margin-bottom: 210px;
}
.container-inner {
width: 1200px;
margin: auto;
background-color: rgba(223, 227, 228, 0.75);
padding-bottom: 40px;
padding-top: 40px;
border-radius: 15px;
}
.header-content {
padding: 0;
width: 1000px;
}
.title1 {
font-size: 80px;
font-family: 'Vollkorn', serif;
color: #404040;
text-align: center;
padding-top: 40px;
padding-bottom: 100px;
}
#icon {
margin-top: -18px;
}
.subtext {
font-size: 25px;
font-style: italic;
color: #08b;
text-align: right;
padding-right: 250px;
}
.bg-primary {
background-color: #00468b;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus {
color: #08b;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:hover {
color: #08b;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus:hover {
color: #08b;
}
.text-faded {
font-size: 25px;
font-family: 'Vollkorn', serif;
}
.section-heading {
font-family: 'Vollkorn', serif;
font-size: 45px;
padding-bottom: 10px;
}
hr {
border-color: #00468b;
padding-bottom: 10px;
}
.description {
margin-top: 20px;
padding-bottom: 200px;
}
.description li {
font-family: 'Vollkorn', serif;
font-size: 25px;
color: #525252;
margin-left: 28%;
padding-top: 5px;
}
.gap {
margin-top: 200px;
}
.troubleshootingtext {
color: rgba(255, 255, 255, 0.7);
padding-left: 30%;
}
.troubleshootingtext li {
list-style-type: circle;
font-size: 25px;
padding-bottom: 5px;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
}
.block.response_body.json:hover {
cursor: pointer;
}
.backdrop {
color: blue;
}
#myModal {
height: 100%;
}
.modal-backdrop {
bottom: 0;
position: fixed;
}
.curl {
padding: 10px;
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
font-size: 0.9em;
max-height: 400px;
margin-top: 5px;
overflow-y: auto;
background-color: #fcf6db;
border: 1px solid #e5e0c6;
border-radius: 4px;
}
.curl_title {
font-size: 1.1em;
margin: 0;
padding: 15px 0 5px;
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
font-weight: 500;
line-height: 1.1;
}
.footer {
display: none;
}
.swagger-section .swagger-ui-wrap h2 {
padding: 0;
}
h2 {
margin: 0;
margin-bottom: 5px;
}
.markdown p {
font-size: 15px;
font-family: 'Arvo', serif;
}
.swagger-section .swagger-ui-wrap .code {
font-size: 15px;
font-family: 'Arvo', serif;
}
.swagger-section .swagger-ui-wrap b {
font-family: 'Arvo', serif;
}
#signin:hover {
cursor: pointer;
}
.dropdown-menu {
padding: 15px;
}
.navbar-right .dropdown-menu {
left: 0;
right: auto;
}
#signinbutton {
width: 100%;
height: 32px;
font-size: 13px;
font-weight: bold;
color: #08b;
}
.navbar-default .nav > li .details {
color: #000000;
text-transform: none;
font-size: 15px;
font-weight: normal;
font-family: 'Open Sans', sans-serif;
font-style: italic;
line-height: 20px;
top: -2px;
}
.navbar-default .nav > li .details:hover {
color: black;
}
#signout {
width: 100%;
height: 32px;
font-size: 13px;
font-weight: bold;
color: #08b;
}
3 changes: 2 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
apisSorter: "alpha"
apisSorter: "alpha",
showRequestHeaders: false
});

function addApiKeyAuthorization(){
Expand Down
Loading