Update JS petstore with OAS2, fix example values (#168)

* restore js petstore from codegen 2x

* update js petstore with oas2, fix example values

* remove comment code in js generator
This commit is contained in:
William Cheng
2018-04-21 11:49:02 +08:00
committed by GitHub
parent 93bf3d91ea
commit fdeca629bb
55 changed files with 557 additions and 494 deletions

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(body)
> Client testSpecialTags(client)
To test special tags
@@ -20,10 +20,7 @@ To test special tags
var SwaggerPetstore = require('swagger_petstore');
var apiInstance = new SwaggerPetstore.AnotherFakeApi();
var body = new SwaggerPetstore.Client(); // Client | client model
var client = new SwaggerPetstore.Client(); // Client | client model
var callback = function(error, data, response) {
if (error) {
console.error(error);
@@ -31,14 +28,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.testSpecialTags(body, callback);
apiInstance.testSpecialTags(client, callback);
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model |
**client** | [**Client**](Client.md)| client model |
### Return type