Merge branch 'master' of github.com:swagger-api/swagger-ui
This commit is contained in:
@@ -32,10 +32,9 @@ You can use the swagger-ui code AS-IS! No need to build or recompile--just clon
|
||||
You can rebuild swagger-ui on your own to tweak it or just so you can say you did. To do so, follow these steps:
|
||||
|
||||
1. install [handlebars](http://handlebarsjs.com/)
|
||||
2. install java
|
||||
3. npm install
|
||||
4. npm run-script build
|
||||
5. You should see the distribution under the dist folder. Open ./dist/index.html to launch Swagger UI in a browser
|
||||
2. npm install
|
||||
3. npm run-script build
|
||||
4. You should see the distribution under the dist folder. Open ./dist/index.html to launch Swagger UI in a browser
|
||||
|
||||
### Use
|
||||
Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstore.swagger.wordnik.com/api/api-docs) service and show its APIs. You can enter your own server url and click explore to view the API.
|
||||
|
||||
@@ -420,6 +420,9 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
|
||||
if(typeof response.paths[path] === 'object') {
|
||||
var httpMethod;
|
||||
for(httpMethod in response.paths[path]) {
|
||||
if(['delete', 'get', 'head', 'options', 'patch', 'post', 'put'].indexOf(httpMethod) === -1) {
|
||||
continue;
|
||||
}
|
||||
var operation = response.paths[path][httpMethod];
|
||||
var tags = operation.tags;
|
||||
if(typeof tags === 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user