[JS] fix template directory for ES5 (#6253)

* fix #5845 (template dir)

* fix js petstore test case
This commit is contained in:
wing328
2017-08-07 22:10:56 +08:00
committed by GitHub
parent 43e53dadda
commit fca8d81b2b
18 changed files with 71 additions and 14 deletions

View File

@@ -16,6 +16,13 @@ To test class name in snake case
### Example
```javascript
var SwaggerPetstore = require('swagger_petstore');
var defaultClient = SwaggerPetstore.ApiClient.instance;
// Configure API key authorization: api_key_query
var api_key_query = defaultClient.authentications['api_key_query'];
api_key_query.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key_query.apiKeyPrefix = 'Token';
var apiInstance = new SwaggerPetstore.Fake_classname_tags123Api();
@@ -41,7 +48,7 @@ Name | Type | Description | Notes
### Authorization
No authorization required
[api_key_query](../README.md#api_key_query)
### HTTP request headers