Skip to content

Commit 2a1eab5

Browse files
committed
Update README.md
1 parent 5ffd293 commit 2a1eab5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ client.clientAuthorizations.add("apiKey", new client.ApiKeyAuthorization("api_ke
7575

7676
### Calling an API with swagger + the browser!
7777

78-
Download `browser/swagger-client.js` into your lib folder
78+
Download `browser/swagger-client.js` into your webapp:
7979

8080
```js
81-
<script src='lib/swagger-client.js' type='text/javascript'></script>
81+
<script src='browser/swagger-client.js' type='text/javascript'></script>
8282
<script type="text/javascript">
8383
// initialize swagger, point to a resource listing
84-
window.swagger = new client.SwaggerClient({
84+
window.swagger = new SwaggerClient({
8585
url: "http://petstore.swagger.io/api/api-docs",
8686
success: function() {
8787
// upon connect, fetch a pet and set contents to element "mydata"
@@ -90,8 +90,11 @@ Download `browser/swagger-client.js` into your lib folder
9090
});
9191
}
9292
});
93-
9493
</script>
94+
95+
<body>
96+
<div id="mydata"></div>
97+
</body>
9598
```
9699

97100
### Need to send an object to your API via POST or PUT?

0 commit comments

Comments
 (0)