update js sample

This commit is contained in:
wing328
2016-03-24 19:54:25 +08:00
parent ec38afde0a
commit eb5c689fac
14 changed files with 114 additions and 113 deletions

View File

@@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
- API verion: 1.0.0
- Package version: 1.0.0
- Build date: 2016-03-18T18:26:17.121+08:00
- Build date: 2016-03-24T19:50:27.240+08:00
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
## Installation

View File

@@ -4,5 +4,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **Integer** | | [optional]
**snakeCase** | **Integer** | | [optional]

View File

@@ -25,11 +25,7 @@
* Constructs a new PetApi.
* @alias module:api/PetApi
* @class
<<<<<<< HEAD
* @param {module:ApiClient} apiClient Optional API client implementation to use, defaulting to {@link module:ApiClient#instance}
=======
* @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance}
>>>>>>> update js doc
* if unspecified.
*/
var exports = function(apiClient) {
@@ -179,11 +175,7 @@
* Finds Pets by status
* Multiple status values can be provided with comma separated strings
* @param {Object} opts Optional parameters
<<<<<<< HEAD
* @param {Array.<String>} opts.status Status values that need to be considered for query
=======
* @param {Array.<String>} opts.status Status values that need to be considered for query (default to available)
>>>>>>> update js doc
* @param {module:api/PetApi~findPetsByStatusCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {Array.<module:model/Pet>}
*/

View File

@@ -29,6 +29,7 @@
var exports = function() {
};
/**
@@ -45,6 +46,9 @@
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'Integer');
}
if (data.hasOwnProperty('snake_case')) {
obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Integer');
}
}
return obj;
}
@@ -55,6 +59,11 @@
*/
exports.prototype['name'] = undefined;
/**
* @member {Integer} snake_case
*/
exports.prototype['snake_case'] = undefined;