File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Download `browser/swagger-client.js` into your lib folder
81
81
< script src= ' lib/swagger-client.js' type= ' text/javascript' >< / script>
82
82
< script type= " text/javascript" >
83
83
// initialize swagger, point to a resource listing
84
- window .swagger = new client. SwaggerClient ({
84
+ window .swagger = new SwaggerClient ({
85
85
url: " http://petstore.swagger.io/api/api-docs" ,
86
86
success : function () {
87
87
// upon connect, fetch a pet and set contents to element "mydata"
Original file line number Diff line number Diff line change 2
2
< head >
3
3
< title > Test Swagger Client</ title >
4
4
< script src ="swagger-client.js "> </ script >
5
+ < script type ="text/javascript ">
6
+ // initialize swagger
7
+ var swagger = new SwaggerClient ( {
8
+ url : "http://petstore.swagger.io/api/api-docs" ,
9
+ success : function ( ) { }
10
+ } ) ;
11
+ </ script >
5
12
</ head >
6
13
</ html >
You can’t perform that action at this time.
0 commit comments