|
1 | 1 | This is the Wordnik Swagger javascript client for use with [swagger](http://swagger.wordnik.com) enabled APIs. |
2 | 2 | It's written in CoffeeScript and tested with Jasmine, and is the fastest way to enable a javascript client to communicate with a swagger-enabled server. |
3 | 3 |
|
4 | | -Find out more about the swagger project at [swagger.wordnik.com](http://swagger.wordnik.com), |
| 4 | +Find out more about the swagger project at [swagger.wordnik.com](http://swagger.wordnik.com), |
5 | 5 | and follow us on Twitter at [@swagger_doc](https://twitter.com/#!/swagger_doc). |
6 | 6 |
|
7 | 7 | ## READ MORE about swagger! |
@@ -61,13 +61,13 @@ That's it! You'll get a JSON response with the default callback handler: |
61 | 61 | Need to pass an API key? Configure one as a querystring: |
62 | 62 |
|
63 | 63 | ```js |
64 | | -client.authorizations.add("apiKey", new swagger.ApiKeyAuthorization("api_key","special-key","query")); |
| 64 | +client.authorizations.add("apiKey", new client.ApiKeyAuthorization("api_key","special-key","query")); |
65 | 65 | ``` |
66 | 66 |
|
67 | 67 | ...or with a header: |
68 | 68 |
|
69 | 69 | ```js |
70 | | -client.authorizations.add("apiKey", new swagger.ApiKeyAuthorization("api_key","special-key","header")); |
| 70 | +client.authorizations.add("apiKey", new client.ApiKeyAuthorization("api_key","special-key","header")); |
71 | 71 | ``` |
72 | 72 |
|
73 | 73 | ### Calling an API with swagger + the browser! |
@@ -129,11 +129,11 @@ The HTTP requests themselves are handled by the excellent [shred](https://github |
129 | 129 | Development |
130 | 130 | ----------- |
131 | 131 |
|
132 | | -Please [fork the code](https://github.com/wordnik/swagger-js) and help us improve |
| 132 | +Please [fork the code](https://github.com/wordnik/swagger-js) and help us improve |
133 | 133 | swagger.js. Send us a pull request and **we'll mail you a wordnik T-shirt!** |
134 | 134 |
|
135 | | -Swagger.js is written in CoffeeScript, so you'll need Node.js and the |
136 | | -CoffeeScript compiler. For more detailed installation instructions, see |
| 135 | +Swagger.js is written in CoffeeScript, so you'll need Node.js and the |
| 136 | +CoffeeScript compiler. For more detailed installation instructions, see |
137 | 137 | [coffeescript.org/#installation](http://coffeescript.org/#installation). |
138 | 138 |
|
139 | 139 | ```bash |
@@ -161,7 +161,7 @@ Copyright 2011-2013 Wordnik, Inc. |
161 | 161 |
|
162 | 162 | Licensed under the Apache License, Version 2.0 (the "License"); |
163 | 163 | you may not use this file except in compliance with the License. |
164 | | -You may obtain a copy of the License at |
| 164 | +You may obtain a copy of the License at |
165 | 165 | [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) |
166 | 166 |
|
167 | 167 | Unless required by applicable law or agreed to in writing, software |
|
0 commit comments