Skip to content

Commit

Permalink
updated from master
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy authored and mohsen1 committed Feb 27, 2015
1 parent c847551 commit 9d0c6c5
Show file tree
Hide file tree
Showing 12 changed files with 1,201 additions and 754 deletions.
8 changes: 4 additions & 4 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.0-M1 | 2015-01-31 | 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-ui) |
2.1.5-M1 | 2015-02-18 | 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 @@ -51,7 +51,7 @@ docker run -p 127.0.0.1:8080:8080 swagger-ui-builder

This will start Swagger UI at `http://localhost:8080`.
### Use
Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstore.swagger.wordnik.com/v2/swagger.json) service and show its APIs. You can enter your own server url and click explore to view the API.
Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstore.swagger.io/v2/swagger.json) service and show its APIs. You can enter your own server url and click explore to view the API.

### Customize
You may choose to customize Swagger UI for your organization. Here is an overview of whats in its various directories:
Expand All @@ -71,7 +71,7 @@ To use swagger-ui you should take a look at the [source of swagger-ui html page]

```javascript
window.swaggerUi = new SwaggerUi({
url:"http://petstore.swagger.wordnik.com/v2/swagger.json",
url:"http://petstore.swagger.io/v2/swagger.json",
dom_id:"swagger-ui-container"
});

Expand Down Expand Up @@ -172,7 +172,7 @@ You can verify CORS support with one of three techniques:
- Curl your API and inspect the headers. For instance:

```bash
$ curl -I "http://petstore.swagger.wordnik.com/v2/swagger.json"
$ curl -I "http://petstore.swagger.io/v2/swagger.json"
HTTP/1.1 200 OK
Date: Sat, 31 Jan 2015 23:05:44 GMT
Access-Control-Allow-Origin: *
Expand Down
6 changes: 1 addition & 5 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
<script src='lib/underscore-min.js' type='text/javascript'></script>
<script src='lib/backbone-min.js' type='text/javascript'></script>
<script src='lib/swagger-client.js' type='text/javascript'></script>
<script src='lang/translator.js' type='text/javascript'></script>
<script src='lang/en.js' type='text/javascript'></script>
<script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
<script src='lib/marked.js' type='text/javascript'></script>
Expand All @@ -35,10 +33,8 @@
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
SwaggerTranslator.translate();

if(typeof initOAuth == "function") {
/*
initOAuth({
Expand Down
50 changes: 0 additions & 50 deletions dist/lang/en.js

This file was deleted.

51 changes: 0 additions & 51 deletions dist/lang/ru.js

This file was deleted.

53 changes: 0 additions & 53 deletions dist/lang/translator.js

This file was deleted.

Loading

0 comments on commit 9d0c6c5

Please sign in to comment.