mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 07:52:48 +00:00
update js es6 samples
This commit is contained in:
@@ -23,22 +23,21 @@ Test serialization of outer boolean types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
|
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.fakeOuterBooleanSerialize(opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -70,22 +69,21 @@ Test serialization of object with outer number type
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.fakeOuterCompositeSerialize(opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -117,22 +115,21 @@ Test serialization of outer number types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
|
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.fakeOuterNumberSerialize(opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -164,22 +161,21 @@ Test serialization of outer string types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
|
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.fakeOuterStringSerialize(opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -211,21 +207,20 @@ To test \"client\" model
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Client(); // Client | client model
|
let body = new SwaggerPetstore.Client(); // Client | client model
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.testClientModel(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.testClientModel(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -257,25 +252,25 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure HTTP basic authorization: http_basic_test
|
// Configure HTTP basic authorization: http_basic_test
|
||||||
var http_basic_test = defaultClient.authentications['http_basic_test'];
|
let http_basic_test = defaultClient.authentications['http_basic_test'];
|
||||||
http_basic_test.username = 'YOUR USERNAME';
|
http_basic_test.username = 'YOUR USERNAME';
|
||||||
http_basic_test.password = 'YOUR PASSWORD';
|
http_basic_test.password = 'YOUR PASSWORD';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var _number = 3.4; // Number | None
|
let _number = 3.4; // Number | None
|
||||||
|
|
||||||
var _double = 1.2; // Number | None
|
let _double = 1.2; // Number | None
|
||||||
|
|
||||||
var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
|
let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
|
||||||
|
|
||||||
var _byte = B; // Blob | None
|
let _byte = B; // Blob | None
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'integer': 56, // Number | None
|
'integer': 56, // Number | None
|
||||||
'int32': 56, // Number | None
|
'int32': 56, // Number | None
|
||||||
'int64': 789, // Number | None
|
'int64': 789, // Number | None
|
||||||
@@ -288,14 +283,13 @@ var opts = {
|
|||||||
'callback': "callback_example" // String | None
|
'callback': "callback_example" // String | None
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -340,11 +334,11 @@ To test enum parameters
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
|
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
|
||||||
'enumFormString': "-efg", // String | Form parameter enum test (string)
|
'enumFormString': "-efg", // String | Form parameter enum test (string)
|
||||||
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
|
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
|
||||||
@@ -355,14 +349,13 @@ var opts = {
|
|||||||
'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
|
'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.testEnumParameters(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.testEnumParameters(opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|||||||
@@ -24,26 +24,25 @@ Add a new pet to the store
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.addPet(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.addPet(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -75,29 +74,28 @@ Deletes a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | Pet id to delete
|
let petId = 789; // Number | Pet id to delete
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'apiKey': "apiKey_example" // String |
|
'apiKey': "apiKey_example" // String |
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.deletePet(petId, opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.deletePet(petId, opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -130,26 +128,25 @@ Multiple status values can be provided with comma separated strings
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var status = ["status_example"]; // [String] | Status values that need to be considered for filter
|
let status = ["status_example"]; // [String] | Status values that need to be considered for filter
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.findPetsByStatus(status, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.findPetsByStatus(status, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -181,26 +178,25 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var tags = ["tags_example"]; // [String] | Tags to filter by
|
let tags = ["tags_example"]; // [String] | Tags to filter by
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.findPetsByTags(tags, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.findPetsByTags(tags, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -232,28 +228,27 @@ Returns a single pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
var api_key = defaultClient.authentications['api_key'];
|
let api_key = defaultClient.authentications['api_key'];
|
||||||
api_key.apiKey = 'YOUR API KEY';
|
api_key.apiKey = 'YOUR API KEY';
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||||
//api_key.apiKeyPrefix = 'Token';
|
//api_key.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet to return
|
let petId = 789; // Number | ID of pet to return
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.getPetById(petId, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.getPetById(petId, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -285,26 +280,25 @@ Update an existing pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.updatePet(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.updatePet(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -336,30 +330,29 @@ Updates a pet in the store with form data
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet that needs to be updated
|
let petId = 789; // Number | ID of pet that needs to be updated
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'name': "name_example", // String | Updated name of the pet
|
'name': "name_example", // String | Updated name of the pet
|
||||||
'status': "status_example" // String | Updated status of the pet
|
'status': "status_example" // String | Updated status of the pet
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.updatePetWithForm(petId, opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.updatePetWithForm(petId, opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -393,30 +386,29 @@ uploads an image
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet to update
|
let petId = 789; // Number | ID of pet to update
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
|
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
|
||||||
'file': "/path/to/file.txt" // File | file to upload
|
'file': "/path/to/file.txt" // File | file to upload
|
||||||
};
|
};
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.uploadFile(petId, opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.uploadFile(petId, opts, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|||||||
@@ -20,21 +20,20 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var orderId = "orderId_example"; // String | ID of the order that needs to be deleted
|
let orderId = "orderId_example"; // String | ID of the order that needs to be deleted
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.deleteOrder(orderId, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.deleteOrder(orderId, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -66,25 +65,24 @@ Returns a map of status codes to quantities
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
var api_key = defaultClient.authentications['api_key'];
|
let api_key = defaultClient.authentications['api_key'];
|
||||||
api_key.apiKey = 'YOUR API KEY';
|
api_key.apiKey = 'YOUR API KEY';
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||||
//api_key.apiKeyPrefix = 'Token';
|
//api_key.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.getInventory((error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.getInventory(callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -113,21 +111,20 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var orderId = 789; // Number | ID of pet that needs to be fetched
|
let orderId = 789; // Number | ID of pet that needs to be fetched
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.getOrderById(orderId, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.getOrderById(orderId, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -159,21 +156,20 @@ Place an order for a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
|
let body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.placeOrder(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.placeOrder(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|||||||
@@ -24,21 +24,20 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.User(); // User | Created user object
|
let body = new SwaggerPetstore.User(); // User | Created user object
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.createUser(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.createUser(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -70,21 +69,20 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.createUsersWithArrayInput(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -116,21 +114,20 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.createUsersWithListInput(body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.createUsersWithListInput(body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -162,21 +159,20 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The name that needs to be deleted
|
let username = "username_example"; // String | The name that needs to be deleted
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.deleteUser(username, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.deleteUser(username, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -208,21 +204,20 @@ Get user by user name
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
|
let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.getUserByName(username, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.getUserByName(username, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -254,23 +249,22 @@ Logs user into the system
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The user name for login
|
let username = "username_example"; // String | The user name for login
|
||||||
|
|
||||||
var password = "password_example"; // String | The password for login in clear text
|
let password = "password_example"; // String | The password for login in clear text
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.loginUser(username, password, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.loginUser(username, password, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -303,18 +297,17 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.logoutUser((error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.logoutUser(callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@@ -343,23 +336,22 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | name that need to be deleted
|
let username = "username_example"; // String | name that need to be deleted
|
||||||
|
|
||||||
var body = new SwaggerPetstore.User(); // User | Updated user object
|
let body = new SwaggerPetstore.User(); // User | Updated user object
|
||||||
|
|
||||||
|
|
||||||
var callback = function(error, data, response) {
|
apiInstance.updateUser(username, body, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
apiInstance.updateUser(username, body, callback);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|||||||
@@ -5,17 +5,22 @@
|
|||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/mocha/bin/mocha --recursive"
|
"test": "mocha --compilers js:babel-core/register --recursive"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"fs": false
|
"fs": false
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"babel": "^6.23.0",
|
||||||
|
"babel-cli": "^6.24.1",
|
||||||
"superagent": "3.5.2"
|
"superagent": "3.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-core": "6.18.0",
|
||||||
|
"babel-preset-es2015": "^6.24.1",
|
||||||
|
"babel-preset-stage-0": "^6.24.1",
|
||||||
|
"expect.js": "~0.3.1",
|
||||||
"mocha": "~2.3.4",
|
"mocha": "~2.3.4",
|
||||||
"sinon": "1.17.3",
|
"sinon": "1.17.3"
|
||||||
"expect.js": "~0.3.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import superagent from "superagent";
|
||||||
// AMD. Register as an anonymous module.
|
import querystring from "querystring";
|
||||||
define(['superagent', 'querystring'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('superagent'), require('querystring'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ApiClient = factory(root.superagent, root.querystring);
|
|
||||||
}
|
|
||||||
}(this, function(superagent, querystring) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @module ApiClient
|
* @module ApiClient
|
||||||
@@ -43,7 +27,8 @@
|
|||||||
* @alias module:ApiClient
|
* @alias module:ApiClient
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export default class ApiClient {
|
||||||
|
constructor() {
|
||||||
/**
|
/**
|
||||||
* The base URL against which to resolve every API call's (relative) path.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
* @type {String}
|
* @type {String}
|
||||||
@@ -59,7 +44,8 @@
|
|||||||
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||||
'http_basic_test': {type: 'basic'},
|
'http_basic_test': {type: 'basic'},
|
||||||
'petstore_auth': {type: 'oauth2'}
|
'petstore_auth': {type: 'oauth2'}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default HTTP headers to be included for all API calls.
|
* The default HTTP headers to be included for all API calls.
|
||||||
* @type {Array.<String>}
|
* @type {Array.<String>}
|
||||||
@@ -96,23 +82,23 @@
|
|||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
this.agent = new superagent.agent();
|
this.agent = new superagent.agent();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string representation for an actual parameter.
|
* Returns a string representation for an actual parameter.
|
||||||
* @param param The actual parameter.
|
* @param param The actual parameter.
|
||||||
* @returns {String} The string representation of <code>param</code>.
|
* @returns {String} The string representation of <code>param</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.paramToString = function(param) {
|
paramToString(param) {
|
||||||
if (param == undefined || param == null) {
|
if (param == undefined || param == null) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (param instanceof Date) {
|
if (param instanceof Date) {
|
||||||
return param.toJSON();
|
return param.toJSON();
|
||||||
}
|
}
|
||||||
|
|
||||||
return param.toString();
|
return param.toString();
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
||||||
@@ -121,23 +107,25 @@
|
|||||||
* @param {Object} pathParams The parameter values to append.
|
* @param {Object} pathParams The parameter values to append.
|
||||||
* @returns {String} The encoded path with parameter values substituted.
|
* @returns {String} The encoded path with parameter values substituted.
|
||||||
*/
|
*/
|
||||||
exports.prototype.buildUrl = function(path, pathParams) {
|
buildUrl(path, pathParams) {
|
||||||
if (!path.match(/^\//)) {
|
if (!path.match(/^\//)) {
|
||||||
path = '/' + path;
|
path = '/' + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = this.basePath + path;
|
var url = this.basePath + path;
|
||||||
var _this = this;
|
url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => {
|
||||||
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
|
|
||||||
var value;
|
var value;
|
||||||
if (pathParams.hasOwnProperty(key)) {
|
if (pathParams.hasOwnProperty(key)) {
|
||||||
value = _this.paramToString(pathParams[key]);
|
value = this.paramToString(pathParams[key]);
|
||||||
} else {
|
} else {
|
||||||
value = fullMatch;
|
value = fullMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return encodeURIComponent(value);
|
return encodeURIComponent(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the given content type represents JSON.<br>
|
* Checks whether the given content type represents JSON.<br>
|
||||||
@@ -150,33 +138,34 @@
|
|||||||
* @param {String} contentType The MIME content type to check.
|
* @param {String} contentType The MIME content type to check.
|
||||||
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.isJsonMime = function(contentType) {
|
isJsonMime(contentType) {
|
||||||
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
||||||
* @param {Array.<String>} contentTypes
|
* @param {Array.<String>} contentTypes
|
||||||
* @returns {String} The chosen content type, preferring JSON.
|
* @returns {String} The chosen content type, preferring JSON.
|
||||||
*/
|
*/
|
||||||
exports.prototype.jsonPreferredMime = function(contentTypes) {
|
jsonPreferredMime(contentTypes) {
|
||||||
for (var i = 0; i < contentTypes.length; i++) {
|
for (var i = 0; i < contentTypes.length; i++) {
|
||||||
if (this.isJsonMime(contentTypes[i])) {
|
if (this.isJsonMime(contentTypes[i])) {
|
||||||
return contentTypes[i];
|
return contentTypes[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentTypes[0];
|
return contentTypes[0];
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the given parameter value represents file-like content.
|
* Checks whether the given parameter value represents file-like content.
|
||||||
* @param param The parameter to check.
|
* @param param The parameter to check.
|
||||||
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
||||||
*/
|
*/
|
||||||
exports.prototype.isFileParam = function(param) {
|
isFileParam(param) {
|
||||||
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
||||||
if (typeof require === 'function') {
|
if (typeof require === 'function') {
|
||||||
var fs;
|
let fs;
|
||||||
try {
|
try {
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
@@ -184,20 +173,24 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Buffer in Node.js
|
// Buffer in Node.js
|
||||||
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blob in browser
|
// Blob in browser
|
||||||
if (typeof Blob === 'function' && param instanceof Blob) {
|
if (typeof Blob === 'function' && param instanceof Blob) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
||||||
if (typeof File === 'function' && param instanceof File) {
|
if (typeof File === 'function' && param instanceof File) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalizes parameter values:
|
* Normalizes parameter values:
|
||||||
@@ -209,7 +202,7 @@
|
|||||||
* @param {Object.<String, Object>} params The parameters as object properties.
|
* @param {Object.<String, Object>} params The parameters as object properties.
|
||||||
* @returns {Object.<String, Object>} normalized parameters.
|
* @returns {Object.<String, Object>} normalized parameters.
|
||||||
*/
|
*/
|
||||||
exports.prototype.normalizeParams = function(params) {
|
normalizeParams(params) {
|
||||||
var newParams = {};
|
var newParams = {};
|
||||||
for (var key in params) {
|
for (var key in params) {
|
||||||
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
||||||
@@ -221,35 +214,40 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return newParams;
|
return newParams;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumeration of collection format separator strategies.
|
* Enumeration of collection format separator strategies.
|
||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.CollectionFormatEnum = {
|
static CollectionFormatEnum = {
|
||||||
/**
|
/**
|
||||||
* Comma-separated values. Value: <code>csv</code>
|
* Comma-separated values. Value: <code>csv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
CSV: ',',
|
CSV: ',',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Space-separated values. Value: <code>ssv</code>
|
* Space-separated values. Value: <code>ssv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
SSV: ' ',
|
SSV: ' ',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tab-separated values. Value: <code>tsv</code>
|
* Tab-separated values. Value: <code>tsv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
TSV: '\t',
|
TSV: '\t',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pipe(|)-separated values. Value: <code>pipes</code>
|
* Pipe(|)-separated values. Value: <code>pipes</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
PIPES: '|',
|
PIPES: '|',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Native array. Value: <code>multi</code>
|
* Native array. Value: <code>multi</code>
|
||||||
* @const
|
* @const
|
||||||
@@ -264,7 +262,7 @@
|
|||||||
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
||||||
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
|
buildCollectionParam(param, collectionFormat) {
|
||||||
if (param == null) {
|
if (param == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -283,22 +281,22 @@
|
|||||||
default:
|
default:
|
||||||
throw new Error('Unknown collection format: ' + collectionFormat);
|
throw new Error('Unknown collection format: ' + collectionFormat);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies authentication headers to the request.
|
* Applies authentication headers to the request.
|
||||||
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
||||||
* @param {Array.<String>} authNames An array of authentication method names.
|
* @param {Array.<String>} authNames An array of authentication method names.
|
||||||
*/
|
*/
|
||||||
exports.prototype.applyAuthToRequest = function(request, authNames) {
|
applyAuthToRequest(request, authNames) {
|
||||||
var _this = this;
|
authNames.forEach((authName) => {
|
||||||
authNames.forEach(function(authName) {
|
var auth = this.authentications[authName];
|
||||||
var auth = _this.authentications[authName];
|
|
||||||
switch (auth.type) {
|
switch (auth.type) {
|
||||||
case 'basic':
|
case 'basic':
|
||||||
if (auth.username || auth.password) {
|
if (auth.username || auth.password) {
|
||||||
request.auth(auth.username || '', auth.password || '');
|
request.auth(auth.username || '', auth.password || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'apiKey':
|
case 'apiKey':
|
||||||
if (auth.apiKey) {
|
if (auth.apiKey) {
|
||||||
@@ -308,23 +306,26 @@
|
|||||||
} else {
|
} else {
|
||||||
data[auth.name] = auth.apiKey;
|
data[auth.name] = auth.apiKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth['in'] === 'header') {
|
if (auth['in'] === 'header') {
|
||||||
request.set(data);
|
request.set(data);
|
||||||
} else {
|
} else {
|
||||||
request.query(data);
|
request.query(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'oauth2':
|
case 'oauth2':
|
||||||
if (auth.accessToken) {
|
if (auth.accessToken) {
|
||||||
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('Unknown authentication type: ' + auth.type);
|
throw new Error('Unknown authentication type: ' + auth.type);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserializes an HTTP response body into a value of the specified type.
|
* Deserializes an HTTP response body into a value of the specified type.
|
||||||
@@ -335,10 +336,11 @@
|
|||||||
* all properties on <code>data<code> will be converted to this type.
|
* all properties on <code>data<code> will be converted to this type.
|
||||||
* @returns A value of the specified type.
|
* @returns A value of the specified type.
|
||||||
*/
|
*/
|
||||||
exports.prototype.deserialize = function deserialize(response, returnType) {
|
deserialize(response, returnType) {
|
||||||
if (response == null || returnType == null || response.status == 204) {
|
if (response == null || returnType == null || response.status == 204) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rely on SuperAgent for parsing response body.
|
// Rely on SuperAgent for parsing response body.
|
||||||
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
||||||
var data = response.body;
|
var data = response.body;
|
||||||
@@ -346,8 +348,9 @@
|
|||||||
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
||||||
data = response.text;
|
data = response.text;
|
||||||
}
|
}
|
||||||
return exports.convertToType(data, returnType);
|
|
||||||
};
|
return ApiClient.convertToType(data, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback function to receive the result of the operation.
|
* Callback function to receive the result of the operation.
|
||||||
@@ -374,11 +377,10 @@
|
|||||||
* @param {module:ApiClient~callApiCallback} callback The callback function.
|
* @param {module:ApiClient~callApiCallback} callback The callback function.
|
||||||
* @returns {Object} The SuperAgent request object.
|
* @returns {Object} The SuperAgent request object.
|
||||||
*/
|
*/
|
||||||
exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
|
callApi(path, httpMethod, pathParams,
|
||||||
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
||||||
returnType, callback) {
|
returnType, callback) {
|
||||||
|
|
||||||
var _this = this;
|
|
||||||
var url = this.buildUrl(path, pathParams);
|
var url = this.buildUrl(path, pathParams);
|
||||||
var request = superagent(httpMethod, url);
|
var request = superagent(httpMethod, url);
|
||||||
|
|
||||||
@@ -389,6 +391,7 @@
|
|||||||
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
|
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
|
||||||
queryParams['_'] = new Date().getTime();
|
queryParams['_'] = new Date().getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
request.query(this.normalizeParams(queryParams));
|
request.query(this.normalizeParams(queryParams));
|
||||||
|
|
||||||
// set header parameters
|
// set header parameters
|
||||||
@@ -447,34 +450,36 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
request.end(function(error, response) {
|
|
||||||
|
request.end((error, response) => {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
var data = null;
|
var data = null;
|
||||||
if (!error) {
|
if (!error) {
|
||||||
try {
|
try {
|
||||||
data = _this.deserialize(response, returnType);
|
data = this.deserialize(response, returnType);
|
||||||
if (_this.enableCookies && typeof window === 'undefined'){
|
if (this.enableCookies && typeof window === 'undefined'){
|
||||||
_this.agent.saveCookies(response);
|
this.agent.saveCookies(response);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
error = err;
|
error = err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(error, data, response);
|
callback(error, data, response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return request;
|
return request;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an ISO-8601 string representation of a date value.
|
* Parses an ISO-8601 string representation of a date value.
|
||||||
* @param {String} str The date value as a string.
|
* @param {String} str The date value as a string.
|
||||||
* @returns {Date} The parsed date object.
|
* @returns {Date} The parsed date object.
|
||||||
*/
|
*/
|
||||||
exports.parseDate = function(str) {
|
static parseDate(str) {
|
||||||
return new Date(str.replace(/T/i, ' '));
|
return new Date(str.replace(/T/i, ' '));
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a value to the specified type.
|
* Converts a value to the specified type.
|
||||||
@@ -485,7 +490,7 @@
|
|||||||
* all properties on <code>data<code> will be converted to this type.
|
* all properties on <code>data<code> will be converted to this type.
|
||||||
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
||||||
*/
|
*/
|
||||||
exports.convertToType = function(data, type) {
|
static convertToType(data, type) {
|
||||||
if (data === null || data === undefined)
|
if (data === null || data === undefined)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@@ -499,7 +504,7 @@
|
|||||||
case 'String':
|
case 'String':
|
||||||
return String(data);
|
return String(data);
|
||||||
case 'Date':
|
case 'Date':
|
||||||
return this.parseDate(String(data));
|
return ApiClient.parseDate(String(data));
|
||||||
case 'Blob':
|
case 'Blob':
|
||||||
return data;
|
return data;
|
||||||
default:
|
default:
|
||||||
@@ -512,8 +517,9 @@
|
|||||||
} else if (Array.isArray(type)) {
|
} else if (Array.isArray(type)) {
|
||||||
// for array type like: ['String']
|
// for array type like: ['String']
|
||||||
var itemType = type[0];
|
var itemType = type[0];
|
||||||
return data.map(function(item) {
|
|
||||||
return exports.convertToType(item, itemType);
|
return data.map((item) => {
|
||||||
|
return ApiClient.convertToType(item, itemType);
|
||||||
});
|
});
|
||||||
} else if (typeof type === 'object') {
|
} else if (typeof type === 'object') {
|
||||||
// for plain object type like: {'String': 'Integer'}
|
// for plain object type like: {'String': 'Integer'}
|
||||||
@@ -525,46 +531,46 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = {};
|
var result = {};
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k)) {
|
if (data.hasOwnProperty(k)) {
|
||||||
var key = exports.convertToType(k, keyType);
|
var key = ApiClient.convertToType(k, keyType);
|
||||||
var value = exports.convertToType(data[k], valueType);
|
var value = ApiClient.convertToType(data[k], valueType);
|
||||||
result[key] = value;
|
result[key] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
// for unknown type, return the data directly
|
// for unknown type, return the data directly
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new map or array model from REST data.
|
* Constructs a new map or array model from REST data.
|
||||||
* @param data {Object|Array} The REST data.
|
* @param data {Object|Array} The REST data.
|
||||||
* @param obj {Object|Array} The target object or array.
|
* @param obj {Object|Array} The target object or array.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj, itemType) {
|
static constructFromObject(data, obj, itemType) {
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
if (data.hasOwnProperty(i))
|
if (data.hasOwnProperty(i))
|
||||||
obj[i] = exports.convertToType(data[i], itemType);
|
obj[i] = ApiClient.convertToType(data[i], itemType);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k))
|
if (data.hasOwnProperty(k))
|
||||||
obj[k] = exports.convertToType(data[k], itemType);
|
obj[k] = ApiClient.convertToType(data[k], itemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default API client implementation.
|
* The default API client implementation.
|
||||||
* @type {module:ApiClient}
|
* @type {module:ApiClient}
|
||||||
*/
|
*/
|
||||||
exports.instance = new exports();
|
ApiClient.instance = new ApiClient();
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|||||||
@@ -7,35 +7,24 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import Client from '../model/Client';
|
||||||
define(['ApiClient', 'model/Client', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterNumber', 'model/OuterString'], factory);
|
import OuterBoolean from '../model/OuterBoolean';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import OuterComposite from '../model/OuterComposite';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
import OuterNumber from '../model/OuterNumber';
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/Client'), require('../model/OuterBoolean'), require('../model/OuterComposite'), require('../model/OuterNumber'), require('../model/OuterString'));
|
import OuterString from '../model/OuterString';
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.FakeApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterComposite, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Client, OuterBoolean, OuterComposite, OuterNumber, OuterString) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake service.
|
* Fake service.
|
||||||
* @module api/FakeApi
|
* @module api/FakeApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class FakeApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new FakeApi.
|
* Constructs a new FakeApi.
|
||||||
@@ -44,8 +33,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -63,24 +53,24 @@
|
|||||||
* @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/OuterBoolean}
|
* data is of type: {@link module:model/OuterBoolean}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterBooleanSerialize = function(opts, callback) {
|
fakeOuterBooleanSerialize(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterBoolean;
|
let returnType = OuterBoolean;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/boolean', 'POST',
|
'/fake/outer/boolean', 'POST',
|
||||||
@@ -104,24 +94,24 @@
|
|||||||
* @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/OuterComposite}
|
* data is of type: {@link module:model/OuterComposite}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterCompositeSerialize = function(opts, callback) {
|
fakeOuterCompositeSerialize(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterComposite;
|
let returnType = OuterComposite;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/composite', 'POST',
|
'/fake/outer/composite', 'POST',
|
||||||
@@ -145,24 +135,24 @@
|
|||||||
* @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/OuterNumber}
|
* data is of type: {@link module:model/OuterNumber}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterNumberSerialize = function(opts, callback) {
|
fakeOuterNumberSerialize(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterNumber;
|
let returnType = OuterNumber;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/number', 'POST',
|
'/fake/outer/number', 'POST',
|
||||||
@@ -186,24 +176,24 @@
|
|||||||
* @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/OuterString}
|
* data is of type: {@link module:model/OuterString}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterStringSerialize = function(opts, callback) {
|
fakeOuterStringSerialize(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterString;
|
let returnType = OuterString;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/string', 'POST',
|
'/fake/outer/string', 'POST',
|
||||||
@@ -227,8 +217,8 @@
|
|||||||
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Client}
|
* data is of type: {@link module:model/Client}
|
||||||
*/
|
*/
|
||||||
this.testClientModel = function(body, callback) {
|
testClientModel(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -236,19 +226,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = ['application/json'];
|
let contentTypes = ['application/json'];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = Client;
|
let returnType = Client;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'PATCH',
|
'/fake', 'PATCH',
|
||||||
@@ -285,9 +275,9 @@
|
|||||||
* @param {String} opts.callback None
|
* @param {String} opts.callback None
|
||||||
* @param {module:api/FakeApi~testEndpointParametersCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testEndpointParametersCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts, callback) {
|
testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter '_number' is set
|
// verify the required parameter '_number' is set
|
||||||
if (_number === undefined || _number === null) {
|
if (_number === undefined || _number === null) {
|
||||||
@@ -310,13 +300,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'integer': opts['integer'],
|
'integer': opts['integer'],
|
||||||
'int32': opts['int32'],
|
'int32': opts['int32'],
|
||||||
'int64': opts['int64'],
|
'int64': opts['int64'],
|
||||||
@@ -333,10 +323,10 @@
|
|||||||
'callback': opts['callback']
|
'callback': opts['callback']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['http_basic_test'];
|
let authNames = ['http_basic_test'];
|
||||||
var contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
let contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
||||||
var accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
let accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'POST',
|
'/fake', 'POST',
|
||||||
@@ -367,32 +357,32 @@
|
|||||||
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
||||||
* @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.testEnumParameters = function(opts, callback) {
|
testEnumParameters(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
|
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
|
||||||
'enum_query_string': opts['enumQueryString'],
|
'enum_query_string': opts['enumQueryString'],
|
||||||
'enum_query_integer': opts['enumQueryInteger']
|
'enum_query_integer': opts['enumQueryInteger']
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
'enum_header_string_array': opts['enumHeaderStringArray'],
|
'enum_header_string_array': opts['enumHeaderStringArray'],
|
||||||
'enum_header_string': opts['enumHeaderString']
|
'enum_header_string': opts['enumHeaderString']
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
|
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
|
||||||
'enum_form_string': opts['enumFormString'],
|
'enum_form_string': opts['enumFormString'],
|
||||||
'enum_query_double': opts['enumQueryDouble']
|
'enum_query_double': opts['enumQueryDouble']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = ['*/*'];
|
let contentTypes = ['*/*'];
|
||||||
var accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'GET',
|
'/fake', 'GET',
|
||||||
@@ -400,7 +390,6 @@
|
|||||||
authNames, contentTypes, accepts, returnType, callback
|
authNames, contentTypes, accepts, returnType, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,21 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import ApiResponse from '../model/ApiResponse';
|
||||||
define(['ApiClient', 'model/ApiResponse', 'model/Pet'], factory);
|
import Pet from '../model/Pet';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/ApiResponse'), require('../model/Pet'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.PetApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ApiResponse, root.SwaggerPetstore.Pet);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, ApiResponse, Pet) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet service.
|
* Pet service.
|
||||||
* @module api/PetApi
|
* @module api/PetApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new PetApi.
|
* Constructs a new PetApi.
|
||||||
@@ -44,8 +30,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,8 +49,8 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.addPet = function(body, callback) {
|
addPet(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -71,19 +58,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'POST',
|
'/pet', 'POST',
|
||||||
@@ -108,9 +95,9 @@
|
|||||||
* @param {String} opts.apiKey
|
* @param {String} opts.apiKey
|
||||||
* @param {module:api/PetApi~deletePetCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~deletePetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.deletePet = function(petId, opts, callback) {
|
deletePet(petId, opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -118,21 +105,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
'api_key': opts['apiKey']
|
'api_key': opts['apiKey']
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'DELETE',
|
'/pet/{petId}', 'DELETE',
|
||||||
@@ -156,8 +143,8 @@
|
|||||||
* @param {module:api/PetApi~findPetsByStatusCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~findPetsByStatusCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link Array.<module:model/Pet>}
|
* data is of type: {@link Array.<module:model/Pet>}
|
||||||
*/
|
*/
|
||||||
this.findPetsByStatus = function(status, callback) {
|
findPetsByStatus(status, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'status' is set
|
// verify the required parameter 'status' is set
|
||||||
if (status === undefined || status === null) {
|
if (status === undefined || status === null) {
|
||||||
@@ -165,20 +152,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'status': this.apiClient.buildCollectionParam(status, 'csv')
|
'status': this.apiClient.buildCollectionParam(status, 'csv')
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = [Pet];
|
let returnType = [Pet];
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/findByStatus', 'GET',
|
'/pet/findByStatus', 'GET',
|
||||||
@@ -202,8 +189,8 @@
|
|||||||
* @param {module:api/PetApi~findPetsByTagsCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~findPetsByTagsCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link Array.<module:model/Pet>}
|
* data is of type: {@link Array.<module:model/Pet>}
|
||||||
*/
|
*/
|
||||||
this.findPetsByTags = function(tags, callback) {
|
findPetsByTags(tags, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'tags' is set
|
// verify the required parameter 'tags' is set
|
||||||
if (tags === undefined || tags === null) {
|
if (tags === undefined || tags === null) {
|
||||||
@@ -211,20 +198,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'tags': this.apiClient.buildCollectionParam(tags, 'csv')
|
'tags': this.apiClient.buildCollectionParam(tags, 'csv')
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = [Pet];
|
let returnType = [Pet];
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/findByTags', 'GET',
|
'/pet/findByTags', 'GET',
|
||||||
@@ -248,8 +235,8 @@
|
|||||||
* @param {module:api/PetApi~getPetByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~getPetByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Pet}
|
* data is of type: {@link module:model/Pet}
|
||||||
*/
|
*/
|
||||||
this.getPetById = function(petId, callback) {
|
getPetById(petId, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -257,20 +244,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['api_key'];
|
let authNames = ['api_key'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Pet;
|
let returnType = Pet;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'GET',
|
'/pet/{petId}', 'GET',
|
||||||
@@ -293,8 +280,8 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.updatePet = function(body, callback) {
|
updatePet(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -302,19 +289,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'PUT',
|
'/pet', 'PUT',
|
||||||
@@ -340,9 +327,9 @@
|
|||||||
* @param {String} opts.status Updated status of the pet
|
* @param {String} opts.status Updated status of the pet
|
||||||
* @param {module:api/PetApi~updatePetWithFormCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~updatePetWithFormCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.updatePetWithForm = function(petId, opts, callback) {
|
updatePetWithForm(petId, opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -350,22 +337,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'name': opts['name'],
|
'name': opts['name'],
|
||||||
'status': opts['status']
|
'status': opts['status']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/x-www-form-urlencoded'];
|
let contentTypes = ['application/x-www-form-urlencoded'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'POST',
|
'/pet/{petId}', 'POST',
|
||||||
@@ -392,9 +379,9 @@
|
|||||||
* @param {module:api/PetApi~uploadFileCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~uploadFileCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/ApiResponse}
|
* data is of type: {@link module:model/ApiResponse}
|
||||||
*/
|
*/
|
||||||
this.uploadFile = function(petId, opts, callback) {
|
uploadFile(petId, opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -402,22 +389,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'additionalMetadata': opts['additionalMetadata'],
|
'additionalMetadata': opts['additionalMetadata'],
|
||||||
'file': opts['file']
|
'file': opts['file']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['multipart/form-data'];
|
let contentTypes = ['multipart/form-data'];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = ApiResponse;
|
let returnType = ApiResponse;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}/uploadImage', 'POST',
|
'/pet/{petId}/uploadImage', 'POST',
|
||||||
@@ -425,7 +412,6 @@
|
|||||||
authNames, contentTypes, accepts, returnType, callback
|
authNames, contentTypes, accepts, returnType, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,20 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import Order from '../model/Order';
|
||||||
define(['ApiClient', 'model/Order'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/Order'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.StoreApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Order);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Order) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store service.
|
* Store service.
|
||||||
* @module api/StoreApi
|
* @module api/StoreApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new StoreApi.
|
* Constructs a new StoreApi.
|
||||||
@@ -44,8 +29,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,8 +48,8 @@
|
|||||||
* @param {String} orderId ID of the order that needs to be deleted
|
* @param {String} orderId ID of the order that needs to be deleted
|
||||||
* @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.deleteOrder = function(orderId, callback) {
|
deleteOrder(orderId, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId === undefined || orderId === null) {
|
if (orderId === undefined || orderId === null) {
|
||||||
@@ -71,20 +57,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'order_id': orderId
|
'order_id': orderId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order/{order_id}', 'DELETE',
|
'/store/order/{order_id}', 'DELETE',
|
||||||
@@ -107,23 +93,23 @@
|
|||||||
* @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link Object.<String, {'String': 'Number'}>}
|
* data is of type: {@link Object.<String, {'String': 'Number'}>}
|
||||||
*/
|
*/
|
||||||
this.getInventory = function(callback) {
|
getInventory(callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['api_key'];
|
let authNames = ['api_key'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = {'String': 'Number'};
|
let returnType = {'String': 'Number'};
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/inventory', 'GET',
|
'/store/inventory', 'GET',
|
||||||
@@ -147,8 +133,8 @@
|
|||||||
* @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Order}
|
* data is of type: {@link module:model/Order}
|
||||||
*/
|
*/
|
||||||
this.getOrderById = function(orderId, callback) {
|
getOrderById(orderId, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId === undefined || orderId === null) {
|
if (orderId === undefined || orderId === null) {
|
||||||
@@ -156,20 +142,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'order_id': orderId
|
'order_id': orderId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Order;
|
let returnType = Order;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order/{order_id}', 'GET',
|
'/store/order/{order_id}', 'GET',
|
||||||
@@ -193,8 +179,8 @@
|
|||||||
* @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Order}
|
* data is of type: {@link module:model/Order}
|
||||||
*/
|
*/
|
||||||
this.placeOrder = function(body, callback) {
|
placeOrder(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -202,19 +188,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Order;
|
let returnType = Order;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order', 'POST',
|
'/store/order', 'POST',
|
||||||
@@ -222,7 +208,6 @@
|
|||||||
authNames, contentTypes, accepts, returnType, callback
|
authNames, contentTypes, accepts, returnType, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,20 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import User from '../model/User';
|
||||||
define(['ApiClient', 'model/User'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/User'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.UserApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.User);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, User) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User service.
|
* User service.
|
||||||
* @module api/UserApi
|
* @module api/UserApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new UserApi.
|
* Constructs a new UserApi.
|
||||||
@@ -44,8 +29,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,8 +48,8 @@
|
|||||||
* @param {module:model/User} body Created user object
|
* @param {module:model/User} body Created user object
|
||||||
* @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.createUser = function(body, callback) {
|
createUser(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -71,19 +57,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user', 'POST',
|
'/user', 'POST',
|
||||||
@@ -106,8 +92,8 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.createUsersWithArrayInput = function(body, callback) {
|
createUsersWithArrayInput(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -115,19 +101,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/createWithArray', 'POST',
|
'/user/createWithArray', 'POST',
|
||||||
@@ -150,8 +136,8 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.createUsersWithListInput = function(body, callback) {
|
createUsersWithListInput(body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -159,19 +145,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/createWithList', 'POST',
|
'/user/createWithList', 'POST',
|
||||||
@@ -194,8 +180,8 @@
|
|||||||
* @param {String} username The name that needs to be deleted
|
* @param {String} username The name that needs to be deleted
|
||||||
* @param {module:api/UserApi~deleteUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~deleteUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.deleteUser = function(username, callback) {
|
deleteUser(username, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -203,20 +189,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'DELETE',
|
'/user/{username}', 'DELETE',
|
||||||
@@ -240,8 +226,8 @@
|
|||||||
* @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/User}
|
* data is of type: {@link module:model/User}
|
||||||
*/
|
*/
|
||||||
this.getUserByName = function(username, callback) {
|
getUserByName(username, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -249,20 +235,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = User;
|
let returnType = User;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'GET',
|
'/user/{username}', 'GET',
|
||||||
@@ -287,8 +273,8 @@
|
|||||||
* @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link 'String'}
|
* data is of type: {@link 'String'}
|
||||||
*/
|
*/
|
||||||
this.loginUser = function(username, password, callback) {
|
loginUser(username, password, callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -301,21 +287,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'username': username,
|
'username': username,
|
||||||
'password': password
|
'password': password
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = 'String';
|
let returnType = 'String';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/login', 'GET',
|
'/user/login', 'GET',
|
||||||
@@ -337,23 +323,23 @@
|
|||||||
*
|
*
|
||||||
* @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.logoutUser = function(callback) {
|
logoutUser(callback) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/logout', 'GET',
|
'/user/logout', 'GET',
|
||||||
@@ -377,8 +363,8 @@
|
|||||||
* @param {module:model/User} body Updated user object
|
* @param {module:model/User} body Updated user object
|
||||||
* @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
this.updateUser = function(username, body, callback) {
|
updateUser(username, body, callback) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -391,20 +377,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'PUT',
|
'/user/{username}', 'PUT',
|
||||||
@@ -412,7 +398,6 @@
|
|||||||
authNames, contentTypes, accepts, returnType, callback
|
authNames, contentTypes, accepts, returnType, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,23 +7,53 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from './ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import AdditionalPropertiesClass from './model/AdditionalPropertiesClass';
|
||||||
define(['ApiClient', 'model/AdditionalPropertiesClass', 'model/Animal', 'model/AnimalFarm', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/Capitalization', 'model/Category', 'model/ClassModel', 'model/Client', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterEnum', 'model/OuterNumber', 'model/OuterString', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/User', 'model/Cat', 'model/Dog', 'api/FakeApi', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
|
import Animal from './model/Animal';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import AnimalFarm from './model/AnimalFarm';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
import ApiResponse from './model/ApiResponse';
|
||||||
module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesClass'), require('./model/Animal'), require('./model/AnimalFarm'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/Capitalization'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterBoolean'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/OuterNumber'), require('./model/OuterString'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./model/Cat'), require('./model/Dog'), require('./api/FakeApi'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
|
import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
|
||||||
}
|
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
|
||||||
}(function(ApiClient, AdditionalPropertiesClass, Animal, AnimalFarm, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, Capitalization, Category, ClassModel, Client, EnumArrays, EnumClass, EnumTest, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterBoolean, OuterComposite, OuterEnum, OuterNumber, OuterString, Pet, ReadOnlyFirst, SpecialModelName, Tag, User, Cat, Dog, FakeApi, PetApi, StoreApi, UserApi) {
|
import ArrayTest from './model/ArrayTest';
|
||||||
'use strict';
|
import Capitalization from './model/Capitalization';
|
||||||
|
import Category from './model/Category';
|
||||||
|
import ClassModel from './model/ClassModel';
|
||||||
|
import Client from './model/Client';
|
||||||
|
import EnumArrays from './model/EnumArrays';
|
||||||
|
import EnumClass from './model/EnumClass';
|
||||||
|
import EnumTest from './model/EnumTest';
|
||||||
|
import FormatTest from './model/FormatTest';
|
||||||
|
import HasOnlyReadOnly from './model/HasOnlyReadOnly';
|
||||||
|
import List from './model/List';
|
||||||
|
import MapTest from './model/MapTest';
|
||||||
|
import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass';
|
||||||
|
import Model200Response from './model/Model200Response';
|
||||||
|
import ModelReturn from './model/ModelReturn';
|
||||||
|
import Name from './model/Name';
|
||||||
|
import NumberOnly from './model/NumberOnly';
|
||||||
|
import Order from './model/Order';
|
||||||
|
import OuterBoolean from './model/OuterBoolean';
|
||||||
|
import OuterComposite from './model/OuterComposite';
|
||||||
|
import OuterEnum from './model/OuterEnum';
|
||||||
|
import OuterNumber from './model/OuterNumber';
|
||||||
|
import OuterString from './model/OuterString';
|
||||||
|
import Pet from './model/Pet';
|
||||||
|
import ReadOnlyFirst from './model/ReadOnlyFirst';
|
||||||
|
import SpecialModelName from './model/SpecialModelName';
|
||||||
|
import Tag from './model/Tag';
|
||||||
|
import User from './model/User';
|
||||||
|
import Cat from './model/Cat';
|
||||||
|
import Dog from './model/Dog';
|
||||||
|
import FakeApi from './api/FakeApi';
|
||||||
|
import PetApi from './api/PetApi';
|
||||||
|
import StoreApi from './api/StoreApi';
|
||||||
|
import UserApi from './api/UserApi';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__.<br>
|
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__.<br>
|
||||||
@@ -56,213 +86,250 @@
|
|||||||
* @module index
|
* @module index
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export {
|
||||||
/**
|
/**
|
||||||
* The ApiClient constructor.
|
* The ApiClient constructor.
|
||||||
* @property {module:ApiClient}
|
* @property {module:ApiClient}
|
||||||
*/
|
*/
|
||||||
ApiClient: ApiClient,
|
ApiClient,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AdditionalPropertiesClass model constructor.
|
* The AdditionalPropertiesClass model constructor.
|
||||||
* @property {module:model/AdditionalPropertiesClass}
|
* @property {module:model/AdditionalPropertiesClass}
|
||||||
*/
|
*/
|
||||||
AdditionalPropertiesClass: AdditionalPropertiesClass,
|
AdditionalPropertiesClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Animal model constructor.
|
* The Animal model constructor.
|
||||||
* @property {module:model/Animal}
|
* @property {module:model/Animal}
|
||||||
*/
|
*/
|
||||||
Animal: Animal,
|
Animal,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AnimalFarm model constructor.
|
* The AnimalFarm model constructor.
|
||||||
* @property {module:model/AnimalFarm}
|
* @property {module:model/AnimalFarm}
|
||||||
*/
|
*/
|
||||||
AnimalFarm: AnimalFarm,
|
AnimalFarm,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ApiResponse model constructor.
|
* The ApiResponse model constructor.
|
||||||
* @property {module:model/ApiResponse}
|
* @property {module:model/ApiResponse}
|
||||||
*/
|
*/
|
||||||
ApiResponse: ApiResponse,
|
ApiResponse,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfArrayOfNumberOnly model constructor.
|
* The ArrayOfArrayOfNumberOnly model constructor.
|
||||||
* @property {module:model/ArrayOfArrayOfNumberOnly}
|
* @property {module:model/ArrayOfArrayOfNumberOnly}
|
||||||
*/
|
*/
|
||||||
ArrayOfArrayOfNumberOnly: ArrayOfArrayOfNumberOnly,
|
ArrayOfArrayOfNumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfNumberOnly model constructor.
|
* The ArrayOfNumberOnly model constructor.
|
||||||
* @property {module:model/ArrayOfNumberOnly}
|
* @property {module:model/ArrayOfNumberOnly}
|
||||||
*/
|
*/
|
||||||
ArrayOfNumberOnly: ArrayOfNumberOnly,
|
ArrayOfNumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayTest model constructor.
|
* The ArrayTest model constructor.
|
||||||
* @property {module:model/ArrayTest}
|
* @property {module:model/ArrayTest}
|
||||||
*/
|
*/
|
||||||
ArrayTest: ArrayTest,
|
ArrayTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Capitalization model constructor.
|
* The Capitalization model constructor.
|
||||||
* @property {module:model/Capitalization}
|
* @property {module:model/Capitalization}
|
||||||
*/
|
*/
|
||||||
Capitalization: Capitalization,
|
Capitalization,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Category model constructor.
|
* The Category model constructor.
|
||||||
* @property {module:model/Category}
|
* @property {module:model/Category}
|
||||||
*/
|
*/
|
||||||
Category: Category,
|
Category,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ClassModel model constructor.
|
* The ClassModel model constructor.
|
||||||
* @property {module:model/ClassModel}
|
* @property {module:model/ClassModel}
|
||||||
*/
|
*/
|
||||||
ClassModel: ClassModel,
|
ClassModel,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Client model constructor.
|
* The Client model constructor.
|
||||||
* @property {module:model/Client}
|
* @property {module:model/Client}
|
||||||
*/
|
*/
|
||||||
Client: Client,
|
Client,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumArrays model constructor.
|
* The EnumArrays model constructor.
|
||||||
* @property {module:model/EnumArrays}
|
* @property {module:model/EnumArrays}
|
||||||
*/
|
*/
|
||||||
EnumArrays: EnumArrays,
|
EnumArrays,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumClass model constructor.
|
* The EnumClass model constructor.
|
||||||
* @property {module:model/EnumClass}
|
* @property {module:model/EnumClass}
|
||||||
*/
|
*/
|
||||||
EnumClass: EnumClass,
|
EnumClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumTest model constructor.
|
* The EnumTest model constructor.
|
||||||
* @property {module:model/EnumTest}
|
* @property {module:model/EnumTest}
|
||||||
*/
|
*/
|
||||||
EnumTest: EnumTest,
|
EnumTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FormatTest model constructor.
|
* The FormatTest model constructor.
|
||||||
* @property {module:model/FormatTest}
|
* @property {module:model/FormatTest}
|
||||||
*/
|
*/
|
||||||
FormatTest: FormatTest,
|
FormatTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The HasOnlyReadOnly model constructor.
|
* The HasOnlyReadOnly model constructor.
|
||||||
* @property {module:model/HasOnlyReadOnly}
|
* @property {module:model/HasOnlyReadOnly}
|
||||||
*/
|
*/
|
||||||
HasOnlyReadOnly: HasOnlyReadOnly,
|
HasOnlyReadOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The List model constructor.
|
* The List model constructor.
|
||||||
* @property {module:model/List}
|
* @property {module:model/List}
|
||||||
*/
|
*/
|
||||||
List: List,
|
List,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MapTest model constructor.
|
* The MapTest model constructor.
|
||||||
* @property {module:model/MapTest}
|
* @property {module:model/MapTest}
|
||||||
*/
|
*/
|
||||||
MapTest: MapTest,
|
MapTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MixedPropertiesAndAdditionalPropertiesClass model constructor.
|
* The MixedPropertiesAndAdditionalPropertiesClass model constructor.
|
||||||
* @property {module:model/MixedPropertiesAndAdditionalPropertiesClass}
|
* @property {module:model/MixedPropertiesAndAdditionalPropertiesClass}
|
||||||
*/
|
*/
|
||||||
MixedPropertiesAndAdditionalPropertiesClass: MixedPropertiesAndAdditionalPropertiesClass,
|
MixedPropertiesAndAdditionalPropertiesClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Model200Response model constructor.
|
* The Model200Response model constructor.
|
||||||
* @property {module:model/Model200Response}
|
* @property {module:model/Model200Response}
|
||||||
*/
|
*/
|
||||||
Model200Response: Model200Response,
|
Model200Response,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ModelReturn model constructor.
|
* The ModelReturn model constructor.
|
||||||
* @property {module:model/ModelReturn}
|
* @property {module:model/ModelReturn}
|
||||||
*/
|
*/
|
||||||
ModelReturn: ModelReturn,
|
ModelReturn,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Name model constructor.
|
* The Name model constructor.
|
||||||
* @property {module:model/Name}
|
* @property {module:model/Name}
|
||||||
*/
|
*/
|
||||||
Name: Name,
|
Name,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The NumberOnly model constructor.
|
* The NumberOnly model constructor.
|
||||||
* @property {module:model/NumberOnly}
|
* @property {module:model/NumberOnly}
|
||||||
*/
|
*/
|
||||||
NumberOnly: NumberOnly,
|
NumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Order model constructor.
|
* The Order model constructor.
|
||||||
* @property {module:model/Order}
|
* @property {module:model/Order}
|
||||||
*/
|
*/
|
||||||
Order: Order,
|
Order,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterBoolean model constructor.
|
* The OuterBoolean model constructor.
|
||||||
* @property {module:model/OuterBoolean}
|
* @property {module:model/OuterBoolean}
|
||||||
*/
|
*/
|
||||||
OuterBoolean: OuterBoolean,
|
OuterBoolean,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterComposite model constructor.
|
* The OuterComposite model constructor.
|
||||||
* @property {module:model/OuterComposite}
|
* @property {module:model/OuterComposite}
|
||||||
*/
|
*/
|
||||||
OuterComposite: OuterComposite,
|
OuterComposite,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterEnum model constructor.
|
* The OuterEnum model constructor.
|
||||||
* @property {module:model/OuterEnum}
|
* @property {module:model/OuterEnum}
|
||||||
*/
|
*/
|
||||||
OuterEnum: OuterEnum,
|
OuterEnum,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterNumber model constructor.
|
* The OuterNumber model constructor.
|
||||||
* @property {module:model/OuterNumber}
|
* @property {module:model/OuterNumber}
|
||||||
*/
|
*/
|
||||||
OuterNumber: OuterNumber,
|
OuterNumber,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterString model constructor.
|
* The OuterString model constructor.
|
||||||
* @property {module:model/OuterString}
|
* @property {module:model/OuterString}
|
||||||
*/
|
*/
|
||||||
OuterString: OuterString,
|
OuterString,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Pet model constructor.
|
* The Pet model constructor.
|
||||||
* @property {module:model/Pet}
|
* @property {module:model/Pet}
|
||||||
*/
|
*/
|
||||||
Pet: Pet,
|
Pet,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ReadOnlyFirst model constructor.
|
* The ReadOnlyFirst model constructor.
|
||||||
* @property {module:model/ReadOnlyFirst}
|
* @property {module:model/ReadOnlyFirst}
|
||||||
*/
|
*/
|
||||||
ReadOnlyFirst: ReadOnlyFirst,
|
ReadOnlyFirst,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SpecialModelName model constructor.
|
* The SpecialModelName model constructor.
|
||||||
* @property {module:model/SpecialModelName}
|
* @property {module:model/SpecialModelName}
|
||||||
*/
|
*/
|
||||||
SpecialModelName: SpecialModelName,
|
SpecialModelName,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Tag model constructor.
|
* The Tag model constructor.
|
||||||
* @property {module:model/Tag}
|
* @property {module:model/Tag}
|
||||||
*/
|
*/
|
||||||
Tag: Tag,
|
Tag,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The User model constructor.
|
* The User model constructor.
|
||||||
* @property {module:model/User}
|
* @property {module:model/User}
|
||||||
*/
|
*/
|
||||||
User: User,
|
User,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Cat model constructor.
|
* The Cat model constructor.
|
||||||
* @property {module:model/Cat}
|
* @property {module:model/Cat}
|
||||||
*/
|
*/
|
||||||
Cat: Cat,
|
Cat,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Dog model constructor.
|
* The Dog model constructor.
|
||||||
* @property {module:model/Dog}
|
* @property {module:model/Dog}
|
||||||
*/
|
*/
|
||||||
Dog: Dog,
|
Dog,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FakeApi service constructor.
|
* The FakeApi service constructor.
|
||||||
* @property {module:api/FakeApi}
|
* @property {module:api/FakeApi}
|
||||||
*/
|
*/
|
||||||
FakeApi: FakeApi,
|
FakeApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The PetApi service constructor.
|
* The PetApi service constructor.
|
||||||
* @property {module:api/PetApi}
|
* @property {module:api/PetApi}
|
||||||
*/
|
*/
|
||||||
PetApi: PetApi,
|
PetApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The StoreApi service constructor.
|
* The StoreApi service constructor.
|
||||||
* @property {module:api/StoreApi}
|
* @property {module:api/StoreApi}
|
||||||
*/
|
*/
|
||||||
StoreApi: StoreApi,
|
StoreApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The UserApi service constructor.
|
* The UserApi service constructor.
|
||||||
* @property {module:api/UserApi}
|
* @property {module:api/UserApi}
|
||||||
*/
|
*/
|
||||||
UserApi: UserApi
|
UserApi
|
||||||
};
|
};
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.AdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/AdditionalPropertiesClass
|
* @module model/AdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class AdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/AdditionalPropertiesClass
|
* @alias module:model/AdditionalPropertiesClass
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new AdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_property')) {
|
if (data.hasOwnProperty('map_property')) {
|
||||||
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Object.<String, String>} map_property
|
* @member {Object.<String, String>} map_property
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_property'] = undefined;
|
map_property = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_of_map_property'] = undefined;
|
map_of_map_property = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,24 @@
|
|||||||
* @module model/Animal
|
* @module model/Animal
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Animal {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Animal</code>.
|
* Constructs a new <code>Animal</code>.
|
||||||
* @alias module:model/Animal
|
* @alias module:model/Animal
|
||||||
* @class
|
* @class
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
_this['className'] = className;
|
constructor(className) {
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this['className'] = className;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/Animal} obj Optional instance to populate.
|
* @param {module:model/Animal} obj Optional instance to populate.
|
||||||
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Animal();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('className')) {
|
if (data.hasOwnProperty('className')) {
|
||||||
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
||||||
@@ -77,16 +70,20 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} className
|
* @member {String} className
|
||||||
*/
|
*/
|
||||||
exports.prototype['className'] = undefined;
|
className = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} color
|
* @member {String} color
|
||||||
* @default 'red'
|
* @default 'red'
|
||||||
*/
|
*/
|
||||||
exports.prototype['color'] = 'red';
|
color = 'red';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.AnimalFarm = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,20 +24,26 @@
|
|||||||
* @module model/AnimalFarm
|
* @module model/AnimalFarm
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class AnimalFarm {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AnimalFarm</code>.
|
* Constructs a new <code>AnimalFarm</code>.
|
||||||
* @alias module:model/AnimalFarm
|
* @alias module:model/AnimalFarm
|
||||||
* @class
|
* @class
|
||||||
* @extends Array
|
* @extends Array
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
_this = new Array();
|
|
||||||
Object.setPrototypeOf(_this, exports);
|
|
||||||
|
|
||||||
return _this;
|
constructor() {
|
||||||
};
|
|
||||||
|
this = new Array();
|
||||||
|
Object.setPrototypeOf(this, AnimalFarm);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -61,11 +52,15 @@
|
|||||||
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
||||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new AnimalFarm();
|
||||||
|
|
||||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@@ -73,7 +68,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ApiResponse = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,23 @@
|
|||||||
* @module model/ApiResponse
|
* @module model/ApiResponse
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ApiResponse {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ApiResponse</code>.
|
* Constructs a new <code>ApiResponse</code>.
|
||||||
* @alias module:model/ApiResponse
|
* @alias module:model/ApiResponse
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +48,13 @@
|
|||||||
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
||||||
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ApiResponse();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('code')) {
|
if (data.hasOwnProperty('code')) {
|
||||||
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
||||||
@@ -80,19 +72,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} code
|
* @member {Number} code
|
||||||
*/
|
*/
|
||||||
exports.prototype['code'] = undefined;
|
code = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} type
|
* @member {String} type
|
||||||
*/
|
*/
|
||||||
exports.prototype['type'] = undefined;
|
type = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} message
|
* @member {String} message
|
||||||
*/
|
*/
|
||||||
exports.prototype['message'] = undefined;
|
message = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/ArrayOfArrayOfNumberOnly
|
* @module model/ArrayOfArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayOfArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfArrayOfNumberOnly
|
* @alias module:model/ArrayOfArrayOfNumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
||||||
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['ArrayArrayNumber'] = undefined;
|
ArrayArrayNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/ArrayOfNumberOnly
|
* @module model/ArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfNumberOnly
|
* @alias module:model/ArrayOfNumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayNumber')) {
|
if (data.hasOwnProperty('ArrayNumber')) {
|
||||||
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<Number>} ArrayNumber
|
* @member {Array.<Number>} ArrayNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['ArrayNumber'] = undefined;
|
ArrayNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import ReadOnlyFirst from './ReadOnlyFirst';
|
||||||
define(['ApiClient', 'model/ReadOnlyFirst'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ReadOnlyFirst);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, ReadOnlyFirst) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +24,23 @@
|
|||||||
* @module model/ArrayTest
|
* @module model/ArrayTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayTest</code>.
|
* Constructs a new <code>ArrayTest</code>.
|
||||||
* @alias module:model/ArrayTest
|
* @alias module:model/ArrayTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('array_of_string')) {
|
if (data.hasOwnProperty('array_of_string')) {
|
||||||
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
||||||
@@ -80,19 +73,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<String>} array_of_string
|
* @member {Array.<String>} array_of_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_of_string'] = undefined;
|
array_of_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<Number>>} array_array_of_integer
|
* @member {Array.<Array.<Number>>} array_array_of_integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_array_of_integer'] = undefined;
|
array_array_of_integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_array_of_model'] = undefined;
|
array_array_of_model = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Capitalization = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/Capitalization
|
* @module model/Capitalization
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Capitalization {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Capitalization</code>.
|
* Constructs a new <code>Capitalization</code>.
|
||||||
* @alias module:model/Capitalization
|
* @alias module:model/Capitalization
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +38,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +48,13 @@
|
|||||||
* @param {module:model/Capitalization} obj Optional instance to populate.
|
* @param {module:model/Capitalization} obj Optional instance to populate.
|
||||||
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Capitalization();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('smallCamel')) {
|
if (data.hasOwnProperty('smallCamel')) {
|
||||||
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
||||||
@@ -92,32 +81,36 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} smallCamel
|
* @member {String} smallCamel
|
||||||
*/
|
*/
|
||||||
exports.prototype['smallCamel'] = undefined;
|
smallCamel = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} CapitalCamel
|
* @member {String} CapitalCamel
|
||||||
*/
|
*/
|
||||||
exports.prototype['CapitalCamel'] = undefined;
|
CapitalCamel = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} small_Snake
|
* @member {String} small_Snake
|
||||||
*/
|
*/
|
||||||
exports.prototype['small_Snake'] = undefined;
|
small_Snake = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} Capital_Snake
|
* @member {String} Capital_Snake
|
||||||
*/
|
*/
|
||||||
exports.prototype['Capital_Snake'] = undefined;
|
Capital_Snake = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} SCA_ETH_Flow_Points
|
* @member {String} SCA_ETH_Flow_Points
|
||||||
*/
|
*/
|
||||||
exports.prototype['SCA_ETH_Flow_Points'] = undefined;
|
SCA_ETH_Flow_Points = undefined;
|
||||||
/**
|
/**
|
||||||
* Name of the pet
|
* Name of the pet
|
||||||
* @member {String} ATT_NAME
|
* @member {String} ATT_NAME
|
||||||
*/
|
*/
|
||||||
exports.prototype['ATT_NAME'] = undefined;
|
ATT_NAME = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +24,7 @@
|
|||||||
* @module model/Cat
|
* @module model/Cat
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Cat {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Cat</code>.
|
* Constructs a new <code>Cat</code>.
|
||||||
* @alias module:model/Cat
|
* @alias module:model/Cat
|
||||||
@@ -47,11 +32,17 @@
|
|||||||
* @extends module:model/Animal
|
* @extends module:model/Animal
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
Animal.call(_this, className);
|
|
||||||
|
|
||||||
};
|
constructor(className) {
|
||||||
|
|
||||||
|
|
||||||
|
Animal.call(this, className);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,10 +51,15 @@
|
|||||||
* @param {module:model/Cat} obj Optional instance to populate.
|
* @param {module:model/Cat} obj Optional instance to populate.
|
||||||
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Cat();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('declawed')) {
|
if (data.hasOwnProperty('declawed')) {
|
||||||
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
||||||
}
|
}
|
||||||
@@ -71,17 +67,18 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.prototype = Object.create(Animal.prototype);
|
|
||||||
exports.prototype.constructor = exports;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Boolean} declawed
|
* @member {Boolean} declawed
|
||||||
*/
|
*/
|
||||||
exports.prototype['declawed'] = undefined;
|
declawed = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Category = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/Category
|
* @module model/Category
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Category {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Category</code>.
|
* Constructs a new <code>Category</code>.
|
||||||
* @alias module:model/Category
|
* @alias module:model/Category
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/Category} obj Optional instance to populate.
|
* @param {module:model/Category} obj Optional instance to populate.
|
||||||
* @return {module:model/Category} The populated <code>Category</code> instance.
|
* @return {module:model/Category} The populated <code>Category</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Category();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ClassModel = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,24 @@
|
|||||||
* @module model/ClassModel
|
* @module model/ClassModel
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ClassModel {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ClassModel</code>.
|
* Constructs a new <code>ClassModel</code>.
|
||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
* @alias module:model/ClassModel
|
* @alias module:model/ClassModel
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +49,13 @@
|
|||||||
* @param {module:model/ClassModel} obj Optional instance to populate.
|
* @param {module:model/ClassModel} obj Optional instance to populate.
|
||||||
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ClassModel();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('_class')) {
|
if (data.hasOwnProperty('_class')) {
|
||||||
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
||||||
@@ -73,11 +67,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} _class
|
* @member {String} _class
|
||||||
*/
|
*/
|
||||||
exports.prototype['_class'] = undefined;
|
_class = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Client = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/Client
|
* @module model/Client
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Client {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Client</code>.
|
* Constructs a new <code>Client</code>.
|
||||||
* @alias module:model/Client
|
* @alias module:model/Client
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/Client} obj Optional instance to populate.
|
* @param {module:model/Client} obj Optional instance to populate.
|
||||||
* @return {module:model/Client} The populated <code>Client</code> instance.
|
* @return {module:model/Client} The populated <code>Client</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Client();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('client')) {
|
if (data.hasOwnProperty('client')) {
|
||||||
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} client
|
* @member {String} client
|
||||||
*/
|
*/
|
||||||
exports.prototype['client'] = undefined;
|
client = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Dog = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +24,7 @@
|
|||||||
* @module model/Dog
|
* @module model/Dog
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Dog {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Dog</code>.
|
* Constructs a new <code>Dog</code>.
|
||||||
* @alias module:model/Dog
|
* @alias module:model/Dog
|
||||||
@@ -47,11 +32,17 @@
|
|||||||
* @extends module:model/Animal
|
* @extends module:model/Animal
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
Animal.call(_this, className);
|
|
||||||
|
|
||||||
};
|
constructor(className) {
|
||||||
|
|
||||||
|
|
||||||
|
Animal.call(this, className);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,10 +51,15 @@
|
|||||||
* @param {module:model/Dog} obj Optional instance to populate.
|
* @param {module:model/Dog} obj Optional instance to populate.
|
||||||
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Dog();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('breed')) {
|
if (data.hasOwnProperty('breed')) {
|
||||||
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
||||||
}
|
}
|
||||||
@@ -71,17 +67,18 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.prototype = Object.create(Animal.prototype);
|
|
||||||
exports.prototype.constructor = exports;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {String} breed
|
* @member {String} breed
|
||||||
*/
|
*/
|
||||||
exports.prototype['breed'] = undefined;
|
breed = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumArrays = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/EnumArrays
|
* @module model/EnumArrays
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class EnumArrays {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumArrays</code>.
|
* Constructs a new <code>EnumArrays</code>.
|
||||||
* @alias module:model/EnumArrays
|
* @alias module:model/EnumArrays
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
||||||
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new EnumArrays();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('just_symbol')) {
|
if (data.hasOwnProperty('just_symbol')) {
|
||||||
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
||||||
@@ -76,11 +69,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
||||||
*/
|
*/
|
||||||
exports.prototype['just_symbol'] = undefined;
|
just_symbol = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_enum'] = undefined;
|
array_enum = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,37 +85,43 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.JustSymbolEnum = {
|
static JustSymbolEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: ">="
|
* value: ">="
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "$"
|
* value: "$"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"DOLLAR": "$" };
|
"DOLLAR": "$"
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>arrayEnum</code> property.
|
* Allowed values for the <code>arrayEnum</code> property.
|
||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.ArrayEnumEnum = {
|
static ArrayEnumEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "fish"
|
* value: "fish"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"fish": "fish",
|
"fish": "fish",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "crab"
|
* value: "crab"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"crab": "crab" };
|
"crab": "crab"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,12 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumClass = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,33 +20,38 @@
|
|||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export default class EnumClass {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "_abc"
|
* value: "_abc"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"_abc": "_abc",
|
_abc = "_abc";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "-efg"
|
* value: "-efg"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-efg": "-efg",
|
-efg = "-efg";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "(xyz)"
|
* value: "(xyz)"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"(xyz)": "(xyz)" };
|
(xyz) = "(xyz)";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
static constructFromObject(object) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import OuterEnum from './OuterEnum';
|
||||||
define(['ApiClient', 'model/OuterEnum'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./OuterEnum'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterEnum);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, OuterEnum) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,20 +24,23 @@
|
|||||||
* @module model/EnumTest
|
* @module model/EnumTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class EnumTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumTest</code>.
|
* Constructs a new <code>EnumTest</code>.
|
||||||
* @alias module:model/EnumTest
|
* @alias module:model/EnumTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -61,9 +49,13 @@
|
|||||||
* @param {module:model/EnumTest} obj Optional instance to populate.
|
* @param {module:model/EnumTest} obj Optional instance to populate.
|
||||||
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new EnumTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('enum_string')) {
|
if (data.hasOwnProperty('enum_string')) {
|
||||||
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
||||||
@@ -84,19 +76,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_string'] = undefined;
|
enum_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_integer'] = undefined;
|
enum_integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_number'] = undefined;
|
enum_number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterEnum} outerEnum
|
* @member {module:model/OuterEnum} outerEnum
|
||||||
*/
|
*/
|
||||||
exports.prototype['outerEnum'] = undefined;
|
outerEnum = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -104,59 +100,69 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumStringEnum = {
|
static EnumStringEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "UPPER"
|
* value: "UPPER"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"UPPER": "UPPER",
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "lower"
|
* value: "lower"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"lower": "lower",
|
"lower": "lower",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: ""
|
* value: ""
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"empty": "" };
|
"empty": ""
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>enum_integer</code> property.
|
* Allowed values for the <code>enum_integer</code> property.
|
||||||
* @enum {Number}
|
* @enum {Number}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumIntegerEnum = {
|
static EnumIntegerEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: 1
|
* value: 1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"1": 1,
|
"1": 1,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: -1
|
* value: -1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-1": -1 };
|
"-1": -1
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>enum_number</code> property.
|
* Allowed values for the <code>enum_number</code> property.
|
||||||
* @enum {Number}
|
* @enum {Number}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumNumberEnum = {
|
static EnumNumberEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: 1.1
|
* value: 1.1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"1.1": 1.1,
|
"1.1": 1.1,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: -1.2
|
* value: -1.2
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-1.2": -1.2 };
|
"-1.2": -1.2
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.FormatTest = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +23,7 @@
|
|||||||
* @module model/FormatTest
|
* @module model/FormatTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class FormatTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>FormatTest</code>.
|
* Constructs a new <code>FormatTest</code>.
|
||||||
* @alias module:model/FormatTest
|
* @alias module:model/FormatTest
|
||||||
@@ -49,23 +33,17 @@
|
|||||||
* @param _date {Date}
|
* @param _date {Date}
|
||||||
* @param password {String}
|
* @param password {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(_number, _byte, _date, password) {
|
|
||||||
var _this = this;
|
constructor(_number, _byte, _date, password) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_this['number'] = _number;
|
|
||||||
|
this['number'] = _number;this['byte'] = _byte;this['date'] = _date;this['password'] = password;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
_this['byte'] = _byte;
|
|
||||||
|
|
||||||
_this['date'] = _date;
|
|
||||||
|
|
||||||
|
|
||||||
_this['password'] = password;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -74,9 +52,13 @@
|
|||||||
* @param {module:model/FormatTest} obj Optional instance to populate.
|
* @param {module:model/FormatTest} obj Optional instance to populate.
|
||||||
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new FormatTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('integer')) {
|
if (data.hasOwnProperty('integer')) {
|
||||||
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
||||||
@@ -124,59 +106,63 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} integer
|
* @member {Number} integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['integer'] = undefined;
|
integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} int32
|
* @member {Number} int32
|
||||||
*/
|
*/
|
||||||
exports.prototype['int32'] = undefined;
|
int32 = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} int64
|
* @member {Number} int64
|
||||||
*/
|
*/
|
||||||
exports.prototype['int64'] = undefined;
|
int64 = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} number
|
* @member {Number} number
|
||||||
*/
|
*/
|
||||||
exports.prototype['number'] = undefined;
|
number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} float
|
* @member {Number} float
|
||||||
*/
|
*/
|
||||||
exports.prototype['float'] = undefined;
|
float = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} double
|
* @member {Number} double
|
||||||
*/
|
*/
|
||||||
exports.prototype['double'] = undefined;
|
double = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} string
|
* @member {String} string
|
||||||
*/
|
*/
|
||||||
exports.prototype['string'] = undefined;
|
string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Blob} byte
|
* @member {Blob} byte
|
||||||
*/
|
*/
|
||||||
exports.prototype['byte'] = undefined;
|
byte = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Blob} binary
|
* @member {Blob} binary
|
||||||
*/
|
*/
|
||||||
exports.prototype['binary'] = undefined;
|
binary = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} date
|
* @member {Date} date
|
||||||
*/
|
*/
|
||||||
exports.prototype['date'] = undefined;
|
date = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} dateTime
|
* @member {Date} dateTime
|
||||||
*/
|
*/
|
||||||
exports.prototype['dateTime'] = undefined;
|
dateTime = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} uuid
|
* @member {String} uuid
|
||||||
*/
|
*/
|
||||||
exports.prototype['uuid'] = undefined;
|
uuid = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} password
|
* @member {String} password
|
||||||
*/
|
*/
|
||||||
exports.prototype['password'] = undefined;
|
password = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/HasOnlyReadOnly
|
* @module model/HasOnlyReadOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class HasOnlyReadOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>HasOnlyReadOnly</code>.
|
* Constructs a new <code>HasOnlyReadOnly</code>.
|
||||||
* @alias module:model/HasOnlyReadOnly
|
* @alias module:model/HasOnlyReadOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new HasOnlyReadOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} bar
|
* @member {String} bar
|
||||||
*/
|
*/
|
||||||
exports.prototype['bar'] = undefined;
|
bar = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} foo
|
* @member {String} foo
|
||||||
*/
|
*/
|
||||||
exports.prototype['foo'] = undefined;
|
foo = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.List = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/List
|
* @module model/List
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class List {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>List</code>.
|
* Constructs a new <code>List</code>.
|
||||||
* @alias module:model/List
|
* @alias module:model/List
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/List} obj Optional instance to populate.
|
* @param {module:model/List} obj Optional instance to populate.
|
||||||
* @return {module:model/List} The populated <code>List</code> instance.
|
* @return {module:model/List} The populated <code>List</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new List();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('123-list')) {
|
if (data.hasOwnProperty('123-list')) {
|
||||||
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} 123-list
|
* @member {String} 123-list
|
||||||
*/
|
*/
|
||||||
exports.prototype['123-list'] = undefined;
|
123-list = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/MapTest
|
* @module model/MapTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class MapTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MapTest</code>.
|
* Constructs a new <code>MapTest</code>.
|
||||||
* @alias module:model/MapTest
|
* @alias module:model/MapTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/MapTest} obj Optional instance to populate.
|
* @param {module:model/MapTest} obj Optional instance to populate.
|
||||||
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new MapTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_map_of_string')) {
|
if (data.hasOwnProperty('map_map_of_string')) {
|
||||||
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
||||||
@@ -76,11 +69,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_map_of_string'] = undefined;
|
map_map_of_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_of_enum_string'] = undefined;
|
map_of_enum_string = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,20 +85,23 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.InnerEnum = {
|
static InnerEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "UPPER"
|
* value: "UPPER"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"UPPER": "UPPER",
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "lower"
|
* value: "lower"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"lower": "lower" };
|
"lower": "lower"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +24,23 @@
|
|||||||
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('uuid')) {
|
if (data.hasOwnProperty('uuid')) {
|
||||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||||
@@ -80,19 +73,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} uuid
|
* @member {String} uuid
|
||||||
*/
|
*/
|
||||||
exports.prototype['uuid'] = undefined;
|
uuid = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} dateTime
|
* @member {Date} dateTime
|
||||||
*/
|
*/
|
||||||
exports.prototype['dateTime'] = undefined;
|
dateTime = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, module:model/Animal>} map
|
* @member {Object.<String, module:model/Animal>} map
|
||||||
*/
|
*/
|
||||||
exports.prototype['map'] = undefined;
|
map = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Model200Response = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,24 @@
|
|||||||
* @module model/Model200Response
|
* @module model/Model200Response
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Model200Response {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Model200Response</code>.
|
* Constructs a new <code>Model200Response</code>.
|
||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
* @alias module:model/Model200Response
|
* @alias module:model/Model200Response
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/Model200Response} obj Optional instance to populate.
|
* @param {module:model/Model200Response} obj Optional instance to populate.
|
||||||
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Model200Response();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
@@ -77,15 +70,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} name
|
* @member {Number} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} class
|
* @member {String} class
|
||||||
*/
|
*/
|
||||||
exports.prototype['class'] = undefined;
|
class = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ModelReturn = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,24 @@
|
|||||||
* @module model/ModelReturn
|
* @module model/ModelReturn
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ModelReturn {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ModelReturn</code>.
|
* Constructs a new <code>ModelReturn</code>.
|
||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
* @alias module:model/ModelReturn
|
* @alias module:model/ModelReturn
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +49,13 @@
|
|||||||
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
||||||
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ModelReturn();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('return')) {
|
if (data.hasOwnProperty('return')) {
|
||||||
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
||||||
@@ -73,11 +67,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} return
|
* @member {Number} return
|
||||||
*/
|
*/
|
||||||
exports.prototype['return'] = undefined;
|
return = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Name = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +23,7 @@
|
|||||||
* @module model/Name
|
* @module model/Name
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Name {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Name</code>.
|
* Constructs a new <code>Name</code>.
|
||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
@@ -47,14 +31,17 @@
|
|||||||
* @class
|
* @class
|
||||||
* @param name {Number}
|
* @param name {Number}
|
||||||
*/
|
*/
|
||||||
var exports = function(name) {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
_this['name'] = name;
|
constructor(name) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
this['name'] = name;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +50,13 @@
|
|||||||
* @param {module:model/Name} obj Optional instance to populate.
|
* @param {module:model/Name} obj Optional instance to populate.
|
||||||
* @return {module:model/Name} The populated <code>Name</code> instance.
|
* @return {module:model/Name} The populated <code>Name</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Name();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
@@ -86,23 +77,27 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} name
|
* @member {Number} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} snake_case
|
* @member {Number} snake_case
|
||||||
*/
|
*/
|
||||||
exports.prototype['snake_case'] = undefined;
|
snake_case = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} property
|
* @member {String} property
|
||||||
*/
|
*/
|
||||||
exports.prototype['property'] = undefined;
|
property = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} 123Number
|
* @member {Number} 123Number
|
||||||
*/
|
*/
|
||||||
exports.prototype['123Number'] = undefined;
|
123Number = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/NumberOnly
|
* @module model/NumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class NumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>NumberOnly</code>.
|
* Constructs a new <code>NumberOnly</code>.
|
||||||
* @alias module:model/NumberOnly
|
* @alias module:model/NumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new NumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('JustNumber')) {
|
if (data.hasOwnProperty('JustNumber')) {
|
||||||
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} JustNumber
|
* @member {Number} JustNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['JustNumber'] = undefined;
|
JustNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Order = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/Order
|
* @module model/Order
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Order {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Order</code>.
|
* Constructs a new <code>Order</code>.
|
||||||
* @alias module:model/Order
|
* @alias module:model/Order
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +38,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +48,13 @@
|
|||||||
* @param {module:model/Order} obj Optional instance to populate.
|
* @param {module:model/Order} obj Optional instance to populate.
|
||||||
* @return {module:model/Order} The populated <code>Order</code> instance.
|
* @return {module:model/Order} The populated <code>Order</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Order();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -92,29 +81,33 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} petId
|
* @member {Number} petId
|
||||||
*/
|
*/
|
||||||
exports.prototype['petId'] = undefined;
|
petId = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} quantity
|
* @member {Number} quantity
|
||||||
*/
|
*/
|
||||||
exports.prototype['quantity'] = undefined;
|
quantity = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} shipDate
|
* @member {Date} shipDate
|
||||||
*/
|
*/
|
||||||
exports.prototype['shipDate'] = undefined;
|
shipDate = undefined;
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
* @member {module:model/Order.StatusEnum} status
|
* @member {module:model/Order.StatusEnum} status
|
||||||
*/
|
*/
|
||||||
exports.prototype['status'] = undefined;
|
status = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Boolean} complete
|
* @member {Boolean} complete
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
exports.prototype['complete'] = false;
|
complete = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -122,25 +115,29 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.StatusEnum = {
|
static StatusEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "placed"
|
* value: "placed"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"placed": "placed",
|
"placed": "placed",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "approved"
|
* value: "approved"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"approved": "approved",
|
"approved": "approved",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "delivered"
|
* value: "delivered"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"delivered": "delivered" };
|
"delivered": "delivered"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterBoolean = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterBoolean
|
* @module model/OuterBoolean
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterBoolean {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterBoolean</code>.
|
* Constructs a new <code>OuterBoolean</code>.
|
||||||
* @alias module:model/OuterBoolean
|
* @alias module:model/OuterBoolean
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterBoolean} obj Optional instance to populate.
|
* @param {module:model/OuterBoolean} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterBoolean();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,16 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import OuterBoolean from './OuterBoolean';
|
||||||
define(['ApiClient', 'model/OuterBoolean', 'model/OuterNumber', 'model/OuterString'], factory);
|
import OuterNumber from './OuterNumber';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import OuterString from './OuterString';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./OuterBoolean'), require('./OuterNumber'), require('./OuterString'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterComposite = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, OuterBoolean, OuterNumber, OuterString) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +26,23 @@
|
|||||||
* @module model/OuterComposite
|
* @module model/OuterComposite
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterComposite {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterComposite</code>.
|
* Constructs a new <code>OuterComposite</code>.
|
||||||
* @alias module:model/OuterComposite
|
* @alias module:model/OuterComposite
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +51,13 @@
|
|||||||
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterComposite();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('my_number')) {
|
if (data.hasOwnProperty('my_number')) {
|
||||||
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
||||||
@@ -80,19 +75,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/OuterNumber} my_number
|
* @member {module:model/OuterNumber} my_number
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_number'] = undefined;
|
my_number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterString} my_string
|
* @member {module:model/OuterString} my_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_string'] = undefined;
|
my_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterBoolean} my_boolean
|
* @member {module:model/OuterBoolean} my_boolean
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_boolean'] = undefined;
|
my_boolean = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,12 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterEnum = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,33 +20,38 @@
|
|||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export default class OuterEnum {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "placed"
|
* value: "placed"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"placed": "placed",
|
placed = "placed";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "approved"
|
* value: "approved"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"approved": "approved",
|
approved = "approved";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "delivered"
|
* value: "delivered"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"delivered": "delivered" };
|
delivered = "delivered";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
static constructFromObject(object) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterNumber = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterNumber
|
* @module model/OuterNumber
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterNumber {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterNumber</code>.
|
* Constructs a new <code>OuterNumber</code>.
|
||||||
* @alias module:model/OuterNumber
|
* @alias module:model/OuterNumber
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterNumber} obj Optional instance to populate.
|
* @param {module:model/OuterNumber} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterNumber();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterString = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterString
|
* @module model/OuterString
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterString {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterString</code>.
|
* Constructs a new <code>OuterString</code>.
|
||||||
* @alias module:model/OuterString
|
* @alias module:model/OuterString
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterString</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterString</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterString} obj Optional instance to populate.
|
* @param {module:model/OuterString} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterString();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,15 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Category from './Category';
|
||||||
define(['ApiClient', 'model/Category', 'model/Tag'], factory);
|
import Tag from './Tag';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Pet = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Category, root.SwaggerPetstore.Tag);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Category, Tag) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +25,7 @@
|
|||||||
* @module model/Pet
|
* @module model/Pet
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Pet {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Pet</code>.
|
* Constructs a new <code>Pet</code>.
|
||||||
* @alias module:model/Pet
|
* @alias module:model/Pet
|
||||||
@@ -47,16 +33,17 @@
|
|||||||
* @param name {String}
|
* @param name {String}
|
||||||
* @param photoUrls {Array.<String>}
|
* @param photoUrls {Array.<String>}
|
||||||
*/
|
*/
|
||||||
var exports = function(name, photoUrls) {
|
|
||||||
var _this = this;
|
constructor(name, photoUrls) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_this['name'] = name;
|
|
||||||
_this['photoUrls'] = photoUrls;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
this['name'] = name;this['photoUrls'] = photoUrls;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -65,9 +52,13 @@
|
|||||||
* @param {module:model/Pet} obj Optional instance to populate.
|
* @param {module:model/Pet} obj Optional instance to populate.
|
||||||
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Pet();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -94,28 +85,32 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/Category} category
|
* @member {module:model/Category} category
|
||||||
*/
|
*/
|
||||||
exports.prototype['category'] = undefined;
|
category = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<String>} photoUrls
|
* @member {Array.<String>} photoUrls
|
||||||
*/
|
*/
|
||||||
exports.prototype['photoUrls'] = undefined;
|
photoUrls = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/Tag>} tags
|
* @member {Array.<module:model/Tag>} tags
|
||||||
*/
|
*/
|
||||||
exports.prototype['tags'] = undefined;
|
tags = undefined;
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
* @member {module:model/Pet.StatusEnum} status
|
* @member {module:model/Pet.StatusEnum} status
|
||||||
*/
|
*/
|
||||||
exports.prototype['status'] = undefined;
|
status = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -123,25 +118,29 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.StatusEnum = {
|
static StatusEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "available"
|
* value: "available"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"available": "available",
|
"available": "available",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "pending"
|
* value: "pending"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"pending": "pending",
|
"pending": "pending",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "sold"
|
* value: "sold"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"sold": "sold" };
|
"sold": "sold"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ReadOnlyFirst = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/ReadOnlyFirst
|
* @module model/ReadOnlyFirst
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ReadOnlyFirst {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ReadOnlyFirst</code>.
|
* Constructs a new <code>ReadOnlyFirst</code>.
|
||||||
* @alias module:model/ReadOnlyFirst
|
* @alias module:model/ReadOnlyFirst
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
||||||
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ReadOnlyFirst();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} bar
|
* @member {String} bar
|
||||||
*/
|
*/
|
||||||
exports.prototype['bar'] = undefined;
|
bar = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} baz
|
* @member {String} baz
|
||||||
*/
|
*/
|
||||||
exports.prototype['baz'] = undefined;
|
baz = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.SpecialModelName = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/SpecialModelName
|
* @module model/SpecialModelName
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class SpecialModelName {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>SpecialModelName</code>.
|
* Constructs a new <code>SpecialModelName</code>.
|
||||||
* @alias module:model/SpecialModelName
|
* @alias module:model/SpecialModelName
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
||||||
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new SpecialModelName();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('$special[property.name]')) {
|
if (data.hasOwnProperty('$special[property.name]')) {
|
||||||
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} $special[property.name]
|
* @member {Number} $special[property.name]
|
||||||
*/
|
*/
|
||||||
exports.prototype['$special[property.name]'] = undefined;
|
$special[property.name] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Tag = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/Tag
|
* @module model/Tag
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Tag {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Tag</code>.
|
* Constructs a new <code>Tag</code>.
|
||||||
* @alias module:model/Tag
|
* @alias module:model/Tag
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/Tag} obj Optional instance to populate.
|
* @param {module:model/Tag} obj Optional instance to populate.
|
||||||
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Tag();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.User = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/User
|
* @module model/User
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class User {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>User</code>.
|
* Constructs a new <code>User</code>.
|
||||||
* @alias module:model/User
|
* @alias module:model/User
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,8 +39,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -65,9 +48,13 @@
|
|||||||
* @param {module:model/User} obj Optional instance to populate.
|
* @param {module:model/User} obj Optional instance to populate.
|
||||||
* @return {module:model/User} The populated <code>User</code> instance.
|
* @return {module:model/User} The populated <code>User</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new User();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -100,40 +87,44 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} username
|
* @member {String} username
|
||||||
*/
|
*/
|
||||||
exports.prototype['username'] = undefined;
|
username = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} firstName
|
* @member {String} firstName
|
||||||
*/
|
*/
|
||||||
exports.prototype['firstName'] = undefined;
|
firstName = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} lastName
|
* @member {String} lastName
|
||||||
*/
|
*/
|
||||||
exports.prototype['lastName'] = undefined;
|
lastName = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} email
|
* @member {String} email
|
||||||
*/
|
*/
|
||||||
exports.prototype['email'] = undefined;
|
email = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} password
|
* @member {String} password
|
||||||
*/
|
*/
|
||||||
exports.prototype['password'] = undefined;
|
password = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} phone
|
* @member {String} phone
|
||||||
*/
|
*/
|
||||||
exports.prototype['phone'] = undefined;
|
phone = undefined;
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
* @member {Number} userStatus
|
* @member {Number} userStatus
|
||||||
*/
|
*/
|
||||||
exports.prototype['userStatus'] = undefined;
|
userStatus = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,16 +23,16 @@ Test serialization of outer boolean types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
|
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
|
||||||
};
|
};
|
||||||
apiInstance.fakeOuterBooleanSerialize(opts).then(function(data) {
|
apiInstance.fakeOuterBooleanSerialize(opts).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -67,16 +67,16 @@ Test serialization of object with outer number type
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
||||||
};
|
};
|
||||||
apiInstance.fakeOuterCompositeSerialize(opts).then(function(data) {
|
apiInstance.fakeOuterCompositeSerialize(opts).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -111,16 +111,16 @@ Test serialization of outer number types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
|
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
|
||||||
};
|
};
|
||||||
apiInstance.fakeOuterNumberSerialize(opts).then(function(data) {
|
apiInstance.fakeOuterNumberSerialize(opts).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -155,16 +155,16 @@ Test serialization of outer string types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
|
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
|
||||||
};
|
};
|
||||||
apiInstance.fakeOuterStringSerialize(opts).then(function(data) {
|
apiInstance.fakeOuterStringSerialize(opts).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -199,15 +199,15 @@ To test \"client\" model
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Client(); // Client | client model
|
let body = new SwaggerPetstore.Client(); // Client | client model
|
||||||
|
|
||||||
apiInstance.testClientModel(body).then(function(data) {
|
apiInstance.testClientModel(body).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -242,25 +242,25 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure HTTP basic authorization: http_basic_test
|
// Configure HTTP basic authorization: http_basic_test
|
||||||
var http_basic_test = defaultClient.authentications['http_basic_test'];
|
let http_basic_test = defaultClient.authentications['http_basic_test'];
|
||||||
http_basic_test.username = 'YOUR USERNAME';
|
http_basic_test.username = 'YOUR USERNAME';
|
||||||
http_basic_test.password = 'YOUR PASSWORD';
|
http_basic_test.password = 'YOUR PASSWORD';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var _number = 3.4; // Number | None
|
let _number = 3.4; // Number | None
|
||||||
|
|
||||||
var _double = 1.2; // Number | None
|
let _double = 1.2; // Number | None
|
||||||
|
|
||||||
var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
|
let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
|
||||||
|
|
||||||
var _byte = B; // Blob | None
|
let _byte = B; // Blob | None
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'integer': 56, // Number | None
|
'integer': 56, // Number | None
|
||||||
'int32': 56, // Number | None
|
'int32': 56, // Number | None
|
||||||
'int64': 789, // Number | None
|
'int64': 789, // Number | None
|
||||||
@@ -272,9 +272,9 @@ var opts = {
|
|||||||
'password': "password_example", // String | None
|
'password': "password_example", // String | None
|
||||||
'callback': "callback_example" // String | None
|
'callback': "callback_example" // String | None
|
||||||
};
|
};
|
||||||
apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts).then(function() {
|
apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -322,11 +322,11 @@ To test enum parameters
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.FakeApi();
|
let apiInstance = new SwaggerPetstore.FakeApi();
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
|
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
|
||||||
'enumFormString': "-efg", // String | Form parameter enum test (string)
|
'enumFormString': "-efg", // String | Form parameter enum test (string)
|
||||||
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
|
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
|
||||||
@@ -336,9 +336,9 @@ var opts = {
|
|||||||
'enumQueryInteger': 56, // Number | Query parameter enum test (double)
|
'enumQueryInteger': 56, // Number | Query parameter enum test (double)
|
||||||
'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
|
'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
|
||||||
};
|
};
|
||||||
apiInstance.testEnumParameters(opts).then(function() {
|
apiInstance.testEnumParameters(opts).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -24,20 +24,20 @@ Add a new pet to the store
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
apiInstance.addPet(body).then(function() {
|
apiInstance.addPet(body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -72,23 +72,23 @@ Deletes a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | Pet id to delete
|
let petId = 789; // Number | Pet id to delete
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'apiKey': "apiKey_example" // String |
|
'apiKey': "apiKey_example" // String |
|
||||||
};
|
};
|
||||||
apiInstance.deletePet(petId, opts).then(function() {
|
apiInstance.deletePet(petId, opts).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -124,20 +124,20 @@ Multiple status values can be provided with comma separated strings
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var status = ["status_example"]; // [String] | Status values that need to be considered for filter
|
let status = ["status_example"]; // [String] | Status values that need to be considered for filter
|
||||||
|
|
||||||
apiInstance.findPetsByStatus(status).then(function(data) {
|
apiInstance.findPetsByStatus(status).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -172,20 +172,20 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var tags = ["tags_example"]; // [String] | Tags to filter by
|
let tags = ["tags_example"]; // [String] | Tags to filter by
|
||||||
|
|
||||||
apiInstance.findPetsByTags(tags).then(function(data) {
|
apiInstance.findPetsByTags(tags).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -220,22 +220,22 @@ Returns a single pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
var api_key = defaultClient.authentications['api_key'];
|
let api_key = defaultClient.authentications['api_key'];
|
||||||
api_key.apiKey = 'YOUR API KEY';
|
api_key.apiKey = 'YOUR API KEY';
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||||
//api_key.apiKeyPrefix = 'Token';
|
//api_key.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet to return
|
let petId = 789; // Number | ID of pet to return
|
||||||
|
|
||||||
apiInstance.getPetById(petId).then(function(data) {
|
apiInstance.getPetById(petId).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -270,20 +270,20 @@ Update an existing pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
apiInstance.updatePet(body).then(function() {
|
apiInstance.updatePet(body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -318,24 +318,24 @@ Updates a pet in the store with form data
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet that needs to be updated
|
let petId = 789; // Number | ID of pet that needs to be updated
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'name': "name_example", // String | Updated name of the pet
|
'name': "name_example", // String | Updated name of the pet
|
||||||
'status': "status_example" // String | Updated status of the pet
|
'status': "status_example" // String | Updated status of the pet
|
||||||
};
|
};
|
||||||
apiInstance.updatePetWithForm(petId, opts).then(function() {
|
apiInstance.updatePetWithForm(petId, opts).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -372,24 +372,24 @@ uploads an image
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
// Configure OAuth2 access token for authorization: petstore_auth
|
||||||
var petstore_auth = defaultClient.authentications['petstore_auth'];
|
let petstore_auth = defaultClient.authentications['petstore_auth'];
|
||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.PetApi();
|
let apiInstance = new SwaggerPetstore.PetApi();
|
||||||
|
|
||||||
var petId = 789; // Number | ID of pet to update
|
let petId = 789; // Number | ID of pet to update
|
||||||
|
|
||||||
var opts = {
|
let opts = {
|
||||||
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
|
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
|
||||||
'file': "/path/to/file.txt" // File | file to upload
|
'file': "/path/to/file.txt" // File | file to upload
|
||||||
};
|
};
|
||||||
apiInstance.uploadFile(petId, opts).then(function(data) {
|
apiInstance.uploadFile(petId, opts).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var orderId = "orderId_example"; // String | ID of the order that needs to be deleted
|
let orderId = "orderId_example"; // String | ID of the order that needs to be deleted
|
||||||
|
|
||||||
apiInstance.deleteOrder(orderId).then(function() {
|
apiInstance.deleteOrder(orderId).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -63,19 +63,19 @@ Returns a map of status codes to quantities
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
var defaultClient = SwaggerPetstore.ApiClient.instance;
|
let defaultClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
// Configure API key authorization: api_key
|
||||||
var api_key = defaultClient.authentications['api_key'];
|
let api_key = defaultClient.authentications['api_key'];
|
||||||
api_key.apiKey = 'YOUR API KEY';
|
api_key.apiKey = 'YOUR API KEY';
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||||
//api_key.apiKeyPrefix = 'Token';
|
//api_key.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
apiInstance.getInventory().then(function(data) {
|
apiInstance.getInventory().then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -107,15 +107,15 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var orderId = 789; // Number | ID of pet that needs to be fetched
|
let orderId = 789; // Number | ID of pet that needs to be fetched
|
||||||
|
|
||||||
apiInstance.getOrderById(orderId).then(function(data) {
|
apiInstance.getOrderById(orderId).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -150,15 +150,15 @@ Place an order for a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.StoreApi();
|
let apiInstance = new SwaggerPetstore.StoreApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
|
let body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
|
||||||
|
|
||||||
apiInstance.placeOrder(body).then(function(data) {
|
apiInstance.placeOrder(body).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -24,15 +24,15 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = new SwaggerPetstore.User(); // User | Created user object
|
let body = new SwaggerPetstore.User(); // User | Created user object
|
||||||
|
|
||||||
apiInstance.createUser(body).then(function() {
|
apiInstance.createUser(body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -67,15 +67,15 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
||||||
|
|
||||||
apiInstance.createUsersWithArrayInput(body).then(function() {
|
apiInstance.createUsersWithArrayInput(body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -110,15 +110,15 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
|
||||||
|
|
||||||
apiInstance.createUsersWithListInput(body).then(function() {
|
apiInstance.createUsersWithListInput(body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -153,15 +153,15 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The name that needs to be deleted
|
let username = "username_example"; // String | The name that needs to be deleted
|
||||||
|
|
||||||
apiInstance.deleteUser(username).then(function() {
|
apiInstance.deleteUser(username).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -196,15 +196,15 @@ Get user by user name
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
|
let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
|
||||||
|
|
||||||
apiInstance.getUserByName(username).then(function(data) {
|
apiInstance.getUserByName(username).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -239,17 +239,17 @@ Logs user into the system
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | The user name for login
|
let username = "username_example"; // String | The user name for login
|
||||||
|
|
||||||
var password = "password_example"; // String | The password for login in clear text
|
let password = "password_example"; // String | The password for login in clear text
|
||||||
|
|
||||||
apiInstance.loginUser(username, password).then(function(data) {
|
apiInstance.loginUser(username, password).then((data) => {
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -285,12 +285,12 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
apiInstance.logoutUser().then(function() {
|
apiInstance.logoutUser().then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -322,17 +322,17 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```javascript
|
```javascript
|
||||||
var SwaggerPetstore = require('swagger_petstore');
|
import SwaggerPetstore from 'swagger_petstore';
|
||||||
|
|
||||||
var apiInstance = new SwaggerPetstore.UserApi();
|
let apiInstance = new SwaggerPetstore.UserApi();
|
||||||
|
|
||||||
var username = "username_example"; // String | name that need to be deleted
|
let username = "username_example"; // String | name that need to be deleted
|
||||||
|
|
||||||
var body = new SwaggerPetstore.User(); // User | Updated user object
|
let body = new SwaggerPetstore.User(); // User | Updated user object
|
||||||
|
|
||||||
apiInstance.updateUser(username, body).then(function() {
|
apiInstance.updateUser(username, body).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
}, function(error) {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -5,17 +5,22 @@
|
|||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/mocha/bin/mocha --recursive"
|
"test": "mocha --compilers js:babel-core/register --recursive"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"fs": false
|
"fs": false
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"babel": "^6.23.0",
|
||||||
|
"babel-cli": "^6.24.1",
|
||||||
"superagent": "3.5.2"
|
"superagent": "3.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-core": "6.18.0",
|
||||||
|
"babel-preset-es2015": "^6.24.1",
|
||||||
|
"babel-preset-stage-0": "^6.24.1",
|
||||||
|
"expect.js": "~0.3.1",
|
||||||
"mocha": "~2.3.4",
|
"mocha": "~2.3.4",
|
||||||
"sinon": "1.17.3",
|
"sinon": "1.17.3"
|
||||||
"expect.js": "~0.3.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import superagent from "superagent";
|
||||||
// AMD. Register as an anonymous module.
|
import querystring from "querystring";
|
||||||
define(['superagent', 'querystring'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('superagent'), require('querystring'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ApiClient = factory(root.superagent, root.querystring);
|
|
||||||
}
|
|
||||||
}(this, function(superagent, querystring) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @module ApiClient
|
* @module ApiClient
|
||||||
@@ -43,7 +27,8 @@
|
|||||||
* @alias module:ApiClient
|
* @alias module:ApiClient
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export default class ApiClient {
|
||||||
|
constructor() {
|
||||||
/**
|
/**
|
||||||
* The base URL against which to resolve every API call's (relative) path.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
* @type {String}
|
* @type {String}
|
||||||
@@ -59,7 +44,8 @@
|
|||||||
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||||
'http_basic_test': {type: 'basic'},
|
'http_basic_test': {type: 'basic'},
|
||||||
'petstore_auth': {type: 'oauth2'}
|
'petstore_auth': {type: 'oauth2'}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default HTTP headers to be included for all API calls.
|
* The default HTTP headers to be included for all API calls.
|
||||||
* @type {Array.<String>}
|
* @type {Array.<String>}
|
||||||
@@ -96,23 +82,23 @@
|
|||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
this.agent = new superagent.agent();
|
this.agent = new superagent.agent();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string representation for an actual parameter.
|
* Returns a string representation for an actual parameter.
|
||||||
* @param param The actual parameter.
|
* @param param The actual parameter.
|
||||||
* @returns {String} The string representation of <code>param</code>.
|
* @returns {String} The string representation of <code>param</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.paramToString = function(param) {
|
paramToString(param) {
|
||||||
if (param == undefined || param == null) {
|
if (param == undefined || param == null) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (param instanceof Date) {
|
if (param instanceof Date) {
|
||||||
return param.toJSON();
|
return param.toJSON();
|
||||||
}
|
}
|
||||||
|
|
||||||
return param.toString();
|
return param.toString();
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
||||||
@@ -121,23 +107,25 @@
|
|||||||
* @param {Object} pathParams The parameter values to append.
|
* @param {Object} pathParams The parameter values to append.
|
||||||
* @returns {String} The encoded path with parameter values substituted.
|
* @returns {String} The encoded path with parameter values substituted.
|
||||||
*/
|
*/
|
||||||
exports.prototype.buildUrl = function(path, pathParams) {
|
buildUrl(path, pathParams) {
|
||||||
if (!path.match(/^\//)) {
|
if (!path.match(/^\//)) {
|
||||||
path = '/' + path;
|
path = '/' + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = this.basePath + path;
|
var url = this.basePath + path;
|
||||||
var _this = this;
|
url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => {
|
||||||
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
|
|
||||||
var value;
|
var value;
|
||||||
if (pathParams.hasOwnProperty(key)) {
|
if (pathParams.hasOwnProperty(key)) {
|
||||||
value = _this.paramToString(pathParams[key]);
|
value = this.paramToString(pathParams[key]);
|
||||||
} else {
|
} else {
|
||||||
value = fullMatch;
|
value = fullMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return encodeURIComponent(value);
|
return encodeURIComponent(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the given content type represents JSON.<br>
|
* Checks whether the given content type represents JSON.<br>
|
||||||
@@ -150,33 +138,34 @@
|
|||||||
* @param {String} contentType The MIME content type to check.
|
* @param {String} contentType The MIME content type to check.
|
||||||
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.isJsonMime = function(contentType) {
|
isJsonMime(contentType) {
|
||||||
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
||||||
* @param {Array.<String>} contentTypes
|
* @param {Array.<String>} contentTypes
|
||||||
* @returns {String} The chosen content type, preferring JSON.
|
* @returns {String} The chosen content type, preferring JSON.
|
||||||
*/
|
*/
|
||||||
exports.prototype.jsonPreferredMime = function(contentTypes) {
|
jsonPreferredMime(contentTypes) {
|
||||||
for (var i = 0; i < contentTypes.length; i++) {
|
for (var i = 0; i < contentTypes.length; i++) {
|
||||||
if (this.isJsonMime(contentTypes[i])) {
|
if (this.isJsonMime(contentTypes[i])) {
|
||||||
return contentTypes[i];
|
return contentTypes[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentTypes[0];
|
return contentTypes[0];
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the given parameter value represents file-like content.
|
* Checks whether the given parameter value represents file-like content.
|
||||||
* @param param The parameter to check.
|
* @param param The parameter to check.
|
||||||
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
||||||
*/
|
*/
|
||||||
exports.prototype.isFileParam = function(param) {
|
isFileParam(param) {
|
||||||
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
||||||
if (typeof require === 'function') {
|
if (typeof require === 'function') {
|
||||||
var fs;
|
let fs;
|
||||||
try {
|
try {
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
@@ -184,20 +173,24 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Buffer in Node.js
|
// Buffer in Node.js
|
||||||
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blob in browser
|
// Blob in browser
|
||||||
if (typeof Blob === 'function' && param instanceof Blob) {
|
if (typeof Blob === 'function' && param instanceof Blob) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
||||||
if (typeof File === 'function' && param instanceof File) {
|
if (typeof File === 'function' && param instanceof File) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalizes parameter values:
|
* Normalizes parameter values:
|
||||||
@@ -209,7 +202,7 @@
|
|||||||
* @param {Object.<String, Object>} params The parameters as object properties.
|
* @param {Object.<String, Object>} params The parameters as object properties.
|
||||||
* @returns {Object.<String, Object>} normalized parameters.
|
* @returns {Object.<String, Object>} normalized parameters.
|
||||||
*/
|
*/
|
||||||
exports.prototype.normalizeParams = function(params) {
|
normalizeParams(params) {
|
||||||
var newParams = {};
|
var newParams = {};
|
||||||
for (var key in params) {
|
for (var key in params) {
|
||||||
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
||||||
@@ -221,35 +214,40 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return newParams;
|
return newParams;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumeration of collection format separator strategies.
|
* Enumeration of collection format separator strategies.
|
||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.CollectionFormatEnum = {
|
static CollectionFormatEnum = {
|
||||||
/**
|
/**
|
||||||
* Comma-separated values. Value: <code>csv</code>
|
* Comma-separated values. Value: <code>csv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
CSV: ',',
|
CSV: ',',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Space-separated values. Value: <code>ssv</code>
|
* Space-separated values. Value: <code>ssv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
SSV: ' ',
|
SSV: ' ',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tab-separated values. Value: <code>tsv</code>
|
* Tab-separated values. Value: <code>tsv</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
TSV: '\t',
|
TSV: '\t',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pipe(|)-separated values. Value: <code>pipes</code>
|
* Pipe(|)-separated values. Value: <code>pipes</code>
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
PIPES: '|',
|
PIPES: '|',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Native array. Value: <code>multi</code>
|
* Native array. Value: <code>multi</code>
|
||||||
* @const
|
* @const
|
||||||
@@ -264,7 +262,7 @@
|
|||||||
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
||||||
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
||||||
*/
|
*/
|
||||||
exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
|
buildCollectionParam(param, collectionFormat) {
|
||||||
if (param == null) {
|
if (param == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -283,22 +281,22 @@
|
|||||||
default:
|
default:
|
||||||
throw new Error('Unknown collection format: ' + collectionFormat);
|
throw new Error('Unknown collection format: ' + collectionFormat);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies authentication headers to the request.
|
* Applies authentication headers to the request.
|
||||||
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
||||||
* @param {Array.<String>} authNames An array of authentication method names.
|
* @param {Array.<String>} authNames An array of authentication method names.
|
||||||
*/
|
*/
|
||||||
exports.prototype.applyAuthToRequest = function(request, authNames) {
|
applyAuthToRequest(request, authNames) {
|
||||||
var _this = this;
|
authNames.forEach((authName) => {
|
||||||
authNames.forEach(function(authName) {
|
var auth = this.authentications[authName];
|
||||||
var auth = _this.authentications[authName];
|
|
||||||
switch (auth.type) {
|
switch (auth.type) {
|
||||||
case 'basic':
|
case 'basic':
|
||||||
if (auth.username || auth.password) {
|
if (auth.username || auth.password) {
|
||||||
request.auth(auth.username || '', auth.password || '');
|
request.auth(auth.username || '', auth.password || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'apiKey':
|
case 'apiKey':
|
||||||
if (auth.apiKey) {
|
if (auth.apiKey) {
|
||||||
@@ -308,23 +306,26 @@
|
|||||||
} else {
|
} else {
|
||||||
data[auth.name] = auth.apiKey;
|
data[auth.name] = auth.apiKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth['in'] === 'header') {
|
if (auth['in'] === 'header') {
|
||||||
request.set(data);
|
request.set(data);
|
||||||
} else {
|
} else {
|
||||||
request.query(data);
|
request.query(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'oauth2':
|
case 'oauth2':
|
||||||
if (auth.accessToken) {
|
if (auth.accessToken) {
|
||||||
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('Unknown authentication type: ' + auth.type);
|
throw new Error('Unknown authentication type: ' + auth.type);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserializes an HTTP response body into a value of the specified type.
|
* Deserializes an HTTP response body into a value of the specified type.
|
||||||
@@ -335,10 +336,11 @@
|
|||||||
* all properties on <code>data<code> will be converted to this type.
|
* all properties on <code>data<code> will be converted to this type.
|
||||||
* @returns A value of the specified type.
|
* @returns A value of the specified type.
|
||||||
*/
|
*/
|
||||||
exports.prototype.deserialize = function deserialize(response, returnType) {
|
deserialize(response, returnType) {
|
||||||
if (response == null || returnType == null || response.status == 204) {
|
if (response == null || returnType == null || response.status == 204) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rely on SuperAgent for parsing response body.
|
// Rely on SuperAgent for parsing response body.
|
||||||
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
||||||
var data = response.body;
|
var data = response.body;
|
||||||
@@ -346,8 +348,11 @@
|
|||||||
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
||||||
data = response.text;
|
data = response.text;
|
||||||
}
|
}
|
||||||
return exports.convertToType(data, returnType);
|
|
||||||
};
|
return ApiClient.convertToType(data, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invokes the REST service using the supplied settings and parameters.
|
* Invokes the REST service using the supplied settings and parameters.
|
||||||
@@ -365,11 +370,10 @@
|
|||||||
* constructor for a complex type.
|
* constructor for a complex type.
|
||||||
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
|
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
|
||||||
*/
|
*/
|
||||||
exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
|
callApi(path, httpMethod, pathParams,
|
||||||
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
||||||
returnType) {
|
returnType) {
|
||||||
|
|
||||||
var _this = this;
|
|
||||||
var url = this.buildUrl(path, pathParams);
|
var url = this.buildUrl(path, pathParams);
|
||||||
var request = superagent(httpMethod, url);
|
var request = superagent(httpMethod, url);
|
||||||
|
|
||||||
@@ -380,6 +384,7 @@
|
|||||||
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
|
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
|
||||||
queryParams['_'] = new Date().getTime();
|
queryParams['_'] = new Date().getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
request.query(this.normalizeParams(queryParams));
|
request.query(this.normalizeParams(queryParams));
|
||||||
|
|
||||||
// set header parameters
|
// set header parameters
|
||||||
@@ -437,16 +442,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise((resolve, reject) => {
|
||||||
request.end(function(error, response) {
|
request.end((error, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
var data = _this.deserialize(response, returnType);
|
var data = this.deserialize(response, returnType);
|
||||||
if (_this.enableCookies && typeof window === 'undefined'){
|
if (this.enableCookies && typeof window === 'undefined'){
|
||||||
_this.agent.saveCookies(response);
|
this.agent.saveCookies(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve({data, response});
|
resolve({data, response});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
@@ -454,16 +460,18 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an ISO-8601 string representation of a date value.
|
* Parses an ISO-8601 string representation of a date value.
|
||||||
* @param {String} str The date value as a string.
|
* @param {String} str The date value as a string.
|
||||||
* @returns {Date} The parsed date object.
|
* @returns {Date} The parsed date object.
|
||||||
*/
|
*/
|
||||||
exports.parseDate = function(str) {
|
static parseDate(str) {
|
||||||
return new Date(str.replace(/T/i, ' '));
|
return new Date(str.replace(/T/i, ' '));
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a value to the specified type.
|
* Converts a value to the specified type.
|
||||||
@@ -474,7 +482,7 @@
|
|||||||
* all properties on <code>data<code> will be converted to this type.
|
* all properties on <code>data<code> will be converted to this type.
|
||||||
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
||||||
*/
|
*/
|
||||||
exports.convertToType = function(data, type) {
|
static convertToType(data, type) {
|
||||||
if (data === null || data === undefined)
|
if (data === null || data === undefined)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@@ -488,7 +496,7 @@
|
|||||||
case 'String':
|
case 'String':
|
||||||
return String(data);
|
return String(data);
|
||||||
case 'Date':
|
case 'Date':
|
||||||
return this.parseDate(String(data));
|
return ApiClient.parseDate(String(data));
|
||||||
case 'Blob':
|
case 'Blob':
|
||||||
return data;
|
return data;
|
||||||
default:
|
default:
|
||||||
@@ -501,8 +509,9 @@
|
|||||||
} else if (Array.isArray(type)) {
|
} else if (Array.isArray(type)) {
|
||||||
// for array type like: ['String']
|
// for array type like: ['String']
|
||||||
var itemType = type[0];
|
var itemType = type[0];
|
||||||
return data.map(function(item) {
|
|
||||||
return exports.convertToType(item, itemType);
|
return data.map((item) => {
|
||||||
|
return ApiClient.convertToType(item, itemType);
|
||||||
});
|
});
|
||||||
} else if (typeof type === 'object') {
|
} else if (typeof type === 'object') {
|
||||||
// for plain object type like: {'String': 'Integer'}
|
// for plain object type like: {'String': 'Integer'}
|
||||||
@@ -514,46 +523,46 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = {};
|
var result = {};
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k)) {
|
if (data.hasOwnProperty(k)) {
|
||||||
var key = exports.convertToType(k, keyType);
|
var key = ApiClient.convertToType(k, keyType);
|
||||||
var value = exports.convertToType(data[k], valueType);
|
var value = ApiClient.convertToType(data[k], valueType);
|
||||||
result[key] = value;
|
result[key] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
// for unknown type, return the data directly
|
// for unknown type, return the data directly
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new map or array model from REST data.
|
* Constructs a new map or array model from REST data.
|
||||||
* @param data {Object|Array} The REST data.
|
* @param data {Object|Array} The REST data.
|
||||||
* @param obj {Object|Array} The target object or array.
|
* @param obj {Object|Array} The target object or array.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj, itemType) {
|
static constructFromObject(data, obj, itemType) {
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
if (data.hasOwnProperty(i))
|
if (data.hasOwnProperty(i))
|
||||||
obj[i] = exports.convertToType(data[i], itemType);
|
obj[i] = ApiClient.convertToType(data[i], itemType);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k))
|
if (data.hasOwnProperty(k))
|
||||||
obj[k] = exports.convertToType(data[k], itemType);
|
obj[k] = ApiClient.convertToType(data[k], itemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default API client implementation.
|
* The default API client implementation.
|
||||||
* @type {module:ApiClient}
|
* @type {module:ApiClient}
|
||||||
*/
|
*/
|
||||||
exports.instance = new exports();
|
ApiClient.instance = new ApiClient();
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|||||||
@@ -7,35 +7,24 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import Client from '../model/Client';
|
||||||
define(['ApiClient', 'model/Client', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterNumber', 'model/OuterString'], factory);
|
import OuterBoolean from '../model/OuterBoolean';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import OuterComposite from '../model/OuterComposite';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
import OuterNumber from '../model/OuterNumber';
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/Client'), require('../model/OuterBoolean'), require('../model/OuterComposite'), require('../model/OuterNumber'), require('../model/OuterString'));
|
import OuterString from '../model/OuterString';
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.FakeApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterComposite, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Client, OuterBoolean, OuterComposite, OuterNumber, OuterString) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake service.
|
* Fake service.
|
||||||
* @module api/FakeApi
|
* @module api/FakeApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class FakeApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new FakeApi.
|
* Constructs a new FakeApi.
|
||||||
@@ -44,8 +33,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,24 +45,24 @@
|
|||||||
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
|
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterBoolean} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterBoolean} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.fakeOuterBooleanSerializeWithHttpInfo = function(opts) {
|
fakeOuterBooleanSerializeWithHttpInfo(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterBoolean;
|
let returnType = OuterBoolean;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/boolean', 'POST',
|
'/fake/outer/boolean', 'POST',
|
||||||
@@ -87,7 +77,7 @@
|
|||||||
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
|
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterBoolean}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterBoolean}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterBooleanSerialize = function(opts) {
|
fakeOuterBooleanSerialize(opts) {
|
||||||
return this.fakeOuterBooleanSerializeWithHttpInfo(opts)
|
return this.fakeOuterBooleanSerializeWithHttpInfo(opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -101,24 +91,24 @@
|
|||||||
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.fakeOuterCompositeSerializeWithHttpInfo = function(opts) {
|
fakeOuterCompositeSerializeWithHttpInfo(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterComposite;
|
let returnType = OuterComposite;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/composite', 'POST',
|
'/fake/outer/composite', 'POST',
|
||||||
@@ -133,7 +123,7 @@
|
|||||||
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterCompositeSerialize = function(opts) {
|
fakeOuterCompositeSerialize(opts) {
|
||||||
return this.fakeOuterCompositeSerializeWithHttpInfo(opts)
|
return this.fakeOuterCompositeSerializeWithHttpInfo(opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -147,24 +137,24 @@
|
|||||||
* @param {module:model/OuterNumber} opts.body Input number as post body
|
* @param {module:model/OuterNumber} opts.body Input number as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterNumber} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterNumber} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.fakeOuterNumberSerializeWithHttpInfo = function(opts) {
|
fakeOuterNumberSerializeWithHttpInfo(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterNumber;
|
let returnType = OuterNumber;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/number', 'POST',
|
'/fake/outer/number', 'POST',
|
||||||
@@ -179,7 +169,7 @@
|
|||||||
* @param {module:model/OuterNumber} opts.body Input number as post body
|
* @param {module:model/OuterNumber} opts.body Input number as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterNumber}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterNumber}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterNumberSerialize = function(opts) {
|
fakeOuterNumberSerialize(opts) {
|
||||||
return this.fakeOuterNumberSerializeWithHttpInfo(opts)
|
return this.fakeOuterNumberSerializeWithHttpInfo(opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -193,24 +183,24 @@
|
|||||||
* @param {module:model/OuterString} opts.body Input string as post body
|
* @param {module:model/OuterString} opts.body Input string as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterString} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterString} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.fakeOuterStringSerializeWithHttpInfo = function(opts) {
|
fakeOuterStringSerializeWithHttpInfo(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = opts['body'];
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = [];
|
let accepts = [];
|
||||||
var returnType = OuterString;
|
let returnType = OuterString;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/string', 'POST',
|
'/fake/outer/string', 'POST',
|
||||||
@@ -225,7 +215,7 @@
|
|||||||
* @param {module:model/OuterString} opts.body Input string as post body
|
* @param {module:model/OuterString} opts.body Input string as post body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterString}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterString}
|
||||||
*/
|
*/
|
||||||
this.fakeOuterStringSerialize = function(opts) {
|
fakeOuterStringSerialize(opts) {
|
||||||
return this.fakeOuterStringSerializeWithHttpInfo(opts)
|
return this.fakeOuterStringSerializeWithHttpInfo(opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -239,8 +229,8 @@
|
|||||||
* @param {module:model/Client} body client model
|
* @param {module:model/Client} body client model
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.testClientModelWithHttpInfo = function(body) {
|
testClientModelWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -248,19 +238,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = ['application/json'];
|
let contentTypes = ['application/json'];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = Client;
|
let returnType = Client;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'PATCH',
|
'/fake', 'PATCH',
|
||||||
@@ -275,7 +265,7 @@
|
|||||||
* @param {module:model/Client} body client model
|
* @param {module:model/Client} body client model
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
|
||||||
*/
|
*/
|
||||||
this.testClientModel = function(body) {
|
testClientModel(body) {
|
||||||
return this.testClientModelWithHttpInfo(body)
|
return this.testClientModelWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -303,9 +293,9 @@
|
|||||||
* @param {String} opts.callback None
|
* @param {String} opts.callback None
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.testEndpointParametersWithHttpInfo = function(_number, _double, patternWithoutDelimiter, _byte, opts) {
|
testEndpointParametersWithHttpInfo(_number, _double, patternWithoutDelimiter, _byte, opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter '_number' is set
|
// verify the required parameter '_number' is set
|
||||||
if (_number === undefined || _number === null) {
|
if (_number === undefined || _number === null) {
|
||||||
@@ -328,13 +318,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'integer': opts['integer'],
|
'integer': opts['integer'],
|
||||||
'int32': opts['int32'],
|
'int32': opts['int32'],
|
||||||
'int64': opts['int64'],
|
'int64': opts['int64'],
|
||||||
@@ -351,10 +341,10 @@
|
|||||||
'callback': opts['callback']
|
'callback': opts['callback']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['http_basic_test'];
|
let authNames = ['http_basic_test'];
|
||||||
var contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
let contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
||||||
var accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
let accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'POST',
|
'/fake', 'POST',
|
||||||
@@ -383,7 +373,7 @@
|
|||||||
* @param {String} opts.callback None
|
* @param {String} opts.callback None
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts) {
|
testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) {
|
||||||
return this.testEndpointParametersWithHttpInfo(_number, _double, patternWithoutDelimiter, _byte, opts)
|
return this.testEndpointParametersWithHttpInfo(_number, _double, patternWithoutDelimiter, _byte, opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -405,32 +395,32 @@
|
|||||||
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.testEnumParametersWithHttpInfo = function(opts) {
|
testEnumParametersWithHttpInfo(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
|
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
|
||||||
'enum_query_string': opts['enumQueryString'],
|
'enum_query_string': opts['enumQueryString'],
|
||||||
'enum_query_integer': opts['enumQueryInteger']
|
'enum_query_integer': opts['enumQueryInteger']
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
'enum_header_string_array': opts['enumHeaderStringArray'],
|
'enum_header_string_array': opts['enumHeaderStringArray'],
|
||||||
'enum_header_string': opts['enumHeaderString']
|
'enum_header_string': opts['enumHeaderString']
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
|
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
|
||||||
'enum_form_string': opts['enumFormString'],
|
'enum_form_string': opts['enumFormString'],
|
||||||
'enum_query_double': opts['enumQueryDouble']
|
'enum_query_double': opts['enumQueryDouble']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = ['*/*'];
|
let contentTypes = ['*/*'];
|
||||||
var accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake', 'GET',
|
'/fake', 'GET',
|
||||||
@@ -453,13 +443,12 @@
|
|||||||
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.testEnumParameters = function(opts) {
|
testEnumParameters(opts) {
|
||||||
return this.testEnumParametersWithHttpInfo(opts)
|
return this.testEnumParametersWithHttpInfo(opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,21 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import ApiResponse from '../model/ApiResponse';
|
||||||
define(['ApiClient', 'model/ApiResponse', 'model/Pet'], factory);
|
import Pet from '../model/Pet';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/ApiResponse'), require('../model/Pet'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.PetApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ApiResponse, root.SwaggerPetstore.Pet);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, ApiResponse, Pet) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet service.
|
* Pet service.
|
||||||
* @module api/PetApi
|
* @module api/PetApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new PetApi.
|
* Constructs a new PetApi.
|
||||||
@@ -44,8 +30,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,8 +42,8 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.addPetWithHttpInfo = function(body) {
|
addPetWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -64,19 +51,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'POST',
|
'/pet', 'POST',
|
||||||
@@ -91,7 +78,7 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.addPet = function(body) {
|
addPet(body) {
|
||||||
return this.addPetWithHttpInfo(body)
|
return this.addPetWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -107,9 +94,9 @@
|
|||||||
* @param {String} opts.apiKey
|
* @param {String} opts.apiKey
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.deletePetWithHttpInfo = function(petId, opts) {
|
deletePetWithHttpInfo(petId, opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -117,21 +104,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
'api_key': opts['apiKey']
|
'api_key': opts['apiKey']
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'DELETE',
|
'/pet/{petId}', 'DELETE',
|
||||||
@@ -148,7 +135,7 @@
|
|||||||
* @param {String} opts.apiKey
|
* @param {String} opts.apiKey
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.deletePet = function(petId, opts) {
|
deletePet(petId, opts) {
|
||||||
return this.deletePetWithHttpInfo(petId, opts)
|
return this.deletePetWithHttpInfo(petId, opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -162,8 +149,8 @@
|
|||||||
* @param {Array.<module:model/String>} status Status values that need to be considered for filter
|
* @param {Array.<module:model/String>} status Status values that need to be considered for filter
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Pet>} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Pet>} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.findPetsByStatusWithHttpInfo = function(status) {
|
findPetsByStatusWithHttpInfo(status) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'status' is set
|
// verify the required parameter 'status' is set
|
||||||
if (status === undefined || status === null) {
|
if (status === undefined || status === null) {
|
||||||
@@ -171,20 +158,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'status': this.apiClient.buildCollectionParam(status, 'csv')
|
'status': this.apiClient.buildCollectionParam(status, 'csv')
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = [Pet];
|
let returnType = [Pet];
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/findByStatus', 'GET',
|
'/pet/findByStatus', 'GET',
|
||||||
@@ -199,7 +186,7 @@
|
|||||||
* @param {Array.<module:model/String>} status Status values that need to be considered for filter
|
* @param {Array.<module:model/String>} status Status values that need to be considered for filter
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Pet>}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Pet>}
|
||||||
*/
|
*/
|
||||||
this.findPetsByStatus = function(status) {
|
findPetsByStatus(status) {
|
||||||
return this.findPetsByStatusWithHttpInfo(status)
|
return this.findPetsByStatusWithHttpInfo(status)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -213,8 +200,8 @@
|
|||||||
* @param {Array.<String>} tags Tags to filter by
|
* @param {Array.<String>} tags Tags to filter by
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Pet>} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Pet>} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.findPetsByTagsWithHttpInfo = function(tags) {
|
findPetsByTagsWithHttpInfo(tags) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'tags' is set
|
// verify the required parameter 'tags' is set
|
||||||
if (tags === undefined || tags === null) {
|
if (tags === undefined || tags === null) {
|
||||||
@@ -222,20 +209,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'tags': this.apiClient.buildCollectionParam(tags, 'csv')
|
'tags': this.apiClient.buildCollectionParam(tags, 'csv')
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = [Pet];
|
let returnType = [Pet];
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/findByTags', 'GET',
|
'/pet/findByTags', 'GET',
|
||||||
@@ -250,7 +237,7 @@
|
|||||||
* @param {Array.<String>} tags Tags to filter by
|
* @param {Array.<String>} tags Tags to filter by
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Pet>}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Pet>}
|
||||||
*/
|
*/
|
||||||
this.findPetsByTags = function(tags) {
|
findPetsByTags(tags) {
|
||||||
return this.findPetsByTagsWithHttpInfo(tags)
|
return this.findPetsByTagsWithHttpInfo(tags)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -264,8 +251,8 @@
|
|||||||
* @param {Number} petId ID of pet to return
|
* @param {Number} petId ID of pet to return
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Pet} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Pet} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.getPetByIdWithHttpInfo = function(petId) {
|
getPetByIdWithHttpInfo(petId) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -273,20 +260,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['api_key'];
|
let authNames = ['api_key'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Pet;
|
let returnType = Pet;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'GET',
|
'/pet/{petId}', 'GET',
|
||||||
@@ -301,7 +288,7 @@
|
|||||||
* @param {Number} petId ID of pet to return
|
* @param {Number} petId ID of pet to return
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Pet}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Pet}
|
||||||
*/
|
*/
|
||||||
this.getPetById = function(petId) {
|
getPetById(petId) {
|
||||||
return this.getPetByIdWithHttpInfo(petId)
|
return this.getPetByIdWithHttpInfo(petId)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -315,8 +302,8 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.updatePetWithHttpInfo = function(body) {
|
updatePetWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -324,19 +311,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'PUT',
|
'/pet', 'PUT',
|
||||||
@@ -351,7 +338,7 @@
|
|||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.updatePet = function(body) {
|
updatePet(body) {
|
||||||
return this.updatePetWithHttpInfo(body)
|
return this.updatePetWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -368,9 +355,9 @@
|
|||||||
* @param {String} opts.status Updated status of the pet
|
* @param {String} opts.status Updated status of the pet
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.updatePetWithFormWithHttpInfo = function(petId, opts) {
|
updatePetWithFormWithHttpInfo(petId, opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -378,22 +365,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'name': opts['name'],
|
'name': opts['name'],
|
||||||
'status': opts['status']
|
'status': opts['status']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['application/x-www-form-urlencoded'];
|
let contentTypes = ['application/x-www-form-urlencoded'];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}', 'POST',
|
'/pet/{petId}', 'POST',
|
||||||
@@ -411,7 +398,7 @@
|
|||||||
* @param {String} opts.status Updated status of the pet
|
* @param {String} opts.status Updated status of the pet
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.updatePetWithForm = function(petId, opts) {
|
updatePetWithForm(petId, opts) {
|
||||||
return this.updatePetWithFormWithHttpInfo(petId, opts)
|
return this.updatePetWithFormWithHttpInfo(petId, opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -428,9 +415,9 @@
|
|||||||
* @param {File} opts.file file to upload
|
* @param {File} opts.file file to upload
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.uploadFileWithHttpInfo = function(petId, opts) {
|
uploadFileWithHttpInfo(petId, opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
// verify the required parameter 'petId' is set
|
||||||
if (petId === undefined || petId === null) {
|
if (petId === undefined || petId === null) {
|
||||||
@@ -438,22 +425,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'petId': petId
|
'petId': petId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
'additionalMetadata': opts['additionalMetadata'],
|
'additionalMetadata': opts['additionalMetadata'],
|
||||||
'file': opts['file']
|
'file': opts['file']
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['petstore_auth'];
|
let authNames = ['petstore_auth'];
|
||||||
var contentTypes = ['multipart/form-data'];
|
let contentTypes = ['multipart/form-data'];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = ApiResponse;
|
let returnType = ApiResponse;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/pet/{petId}/uploadImage', 'POST',
|
'/pet/{petId}/uploadImage', 'POST',
|
||||||
@@ -471,13 +458,12 @@
|
|||||||
* @param {File} opts.file file to upload
|
* @param {File} opts.file file to upload
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiResponse}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiResponse}
|
||||||
*/
|
*/
|
||||||
this.uploadFile = function(petId, opts) {
|
uploadFile(petId, opts) {
|
||||||
return this.uploadFileWithHttpInfo(petId, opts)
|
return this.uploadFileWithHttpInfo(petId, opts)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,20 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import Order from '../model/Order';
|
||||||
define(['ApiClient', 'model/Order'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/Order'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.StoreApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Order);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Order) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store service.
|
* Store service.
|
||||||
* @module api/StoreApi
|
* @module api/StoreApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new StoreApi.
|
* Constructs a new StoreApi.
|
||||||
@@ -44,8 +29,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,8 +41,8 @@
|
|||||||
* @param {String} orderId ID of the order that needs to be deleted
|
* @param {String} orderId ID of the order that needs to be deleted
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.deleteOrderWithHttpInfo = function(orderId) {
|
deleteOrderWithHttpInfo(orderId) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId === undefined || orderId === null) {
|
if (orderId === undefined || orderId === null) {
|
||||||
@@ -64,20 +50,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'order_id': orderId
|
'order_id': orderId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order/{order_id}', 'DELETE',
|
'/store/order/{order_id}', 'DELETE',
|
||||||
@@ -92,7 +78,7 @@
|
|||||||
* @param {String} orderId ID of the order that needs to be deleted
|
* @param {String} orderId ID of the order that needs to be deleted
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.deleteOrder = function(orderId) {
|
deleteOrder(orderId) {
|
||||||
return this.deleteOrderWithHttpInfo(orderId)
|
return this.deleteOrderWithHttpInfo(orderId)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -105,23 +91,23 @@
|
|||||||
* Returns a map of status codes to quantities
|
* Returns a map of status codes to quantities
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, {'String': 'Number'}>} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, {'String': 'Number'}>} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.getInventoryWithHttpInfo = function() {
|
getInventoryWithHttpInfo() {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = ['api_key'];
|
let authNames = ['api_key'];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
var returnType = {'String': 'Number'};
|
let returnType = {'String': 'Number'};
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/inventory', 'GET',
|
'/store/inventory', 'GET',
|
||||||
@@ -135,7 +121,7 @@
|
|||||||
* Returns a map of status codes to quantities
|
* Returns a map of status codes to quantities
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, {'String': 'Number'}>}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, {'String': 'Number'}>}
|
||||||
*/
|
*/
|
||||||
this.getInventory = function() {
|
getInventory() {
|
||||||
return this.getInventoryWithHttpInfo()
|
return this.getInventoryWithHttpInfo()
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -149,8 +135,8 @@
|
|||||||
* @param {Number} orderId ID of pet that needs to be fetched
|
* @param {Number} orderId ID of pet that needs to be fetched
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.getOrderByIdWithHttpInfo = function(orderId) {
|
getOrderByIdWithHttpInfo(orderId) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
// verify the required parameter 'orderId' is set
|
||||||
if (orderId === undefined || orderId === null) {
|
if (orderId === undefined || orderId === null) {
|
||||||
@@ -158,20 +144,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'order_id': orderId
|
'order_id': orderId
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Order;
|
let returnType = Order;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order/{order_id}', 'GET',
|
'/store/order/{order_id}', 'GET',
|
||||||
@@ -186,7 +172,7 @@
|
|||||||
* @param {Number} orderId ID of pet that needs to be fetched
|
* @param {Number} orderId ID of pet that needs to be fetched
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
|
||||||
*/
|
*/
|
||||||
this.getOrderById = function(orderId) {
|
getOrderById(orderId) {
|
||||||
return this.getOrderByIdWithHttpInfo(orderId)
|
return this.getOrderByIdWithHttpInfo(orderId)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -200,8 +186,8 @@
|
|||||||
* @param {module:model/Order} body order placed for purchasing the pet
|
* @param {module:model/Order} body order placed for purchasing the pet
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.placeOrderWithHttpInfo = function(body) {
|
placeOrderWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -209,19 +195,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = Order;
|
let returnType = Order;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/order', 'POST',
|
'/store/order', 'POST',
|
||||||
@@ -236,13 +222,12 @@
|
|||||||
* @param {module:model/Order} body order placed for purchasing the pet
|
* @param {module:model/Order} body order placed for purchasing the pet
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
|
||||||
*/
|
*/
|
||||||
this.placeOrder = function(body) {
|
placeOrder(body) {
|
||||||
return this.placeOrderWithHttpInfo(body)
|
return this.placeOrderWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,35 +7,20 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from "../ApiClient";
|
||||||
// AMD. Register as an anonymous module.
|
import User from '../model/User';
|
||||||
define(['ApiClient', 'model/User'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('../model/User'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.UserApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.User);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, User) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User service.
|
* User service.
|
||||||
* @module api/UserApi
|
* @module api/UserApi
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new UserApi.
|
* Constructs a new UserApi.
|
||||||
@@ -44,8 +29,9 @@
|
|||||||
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
* default to {@link module:ApiClient#instance} if unspecified.
|
||||||
*/
|
*/
|
||||||
var exports = function(apiClient) {
|
constructor(apiClient) {
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
this.apiClient = apiClient || ApiClient.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,8 +41,8 @@
|
|||||||
* @param {module:model/User} body Created user object
|
* @param {module:model/User} body Created user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.createUserWithHttpInfo = function(body) {
|
createUserWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -64,19 +50,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user', 'POST',
|
'/user', 'POST',
|
||||||
@@ -91,7 +77,7 @@
|
|||||||
* @param {module:model/User} body Created user object
|
* @param {module:model/User} body Created user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.createUser = function(body) {
|
createUser(body) {
|
||||||
return this.createUserWithHttpInfo(body)
|
return this.createUserWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -105,8 +91,8 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.createUsersWithArrayInputWithHttpInfo = function(body) {
|
createUsersWithArrayInputWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -114,19 +100,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/createWithArray', 'POST',
|
'/user/createWithArray', 'POST',
|
||||||
@@ -141,7 +127,7 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.createUsersWithArrayInput = function(body) {
|
createUsersWithArrayInput(body) {
|
||||||
return this.createUsersWithArrayInputWithHttpInfo(body)
|
return this.createUsersWithArrayInputWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -155,8 +141,8 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.createUsersWithListInputWithHttpInfo = function(body) {
|
createUsersWithListInputWithHttpInfo(body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body === undefined || body === null) {
|
if (body === undefined || body === null) {
|
||||||
@@ -164,19 +150,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/createWithList', 'POST',
|
'/user/createWithList', 'POST',
|
||||||
@@ -191,7 +177,7 @@
|
|||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} body List of user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.createUsersWithListInput = function(body) {
|
createUsersWithListInput(body) {
|
||||||
return this.createUsersWithListInputWithHttpInfo(body)
|
return this.createUsersWithListInputWithHttpInfo(body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -205,8 +191,8 @@
|
|||||||
* @param {String} username The name that needs to be deleted
|
* @param {String} username The name that needs to be deleted
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.deleteUserWithHttpInfo = function(username) {
|
deleteUserWithHttpInfo(username) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -214,20 +200,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'DELETE',
|
'/user/{username}', 'DELETE',
|
||||||
@@ -242,7 +228,7 @@
|
|||||||
* @param {String} username The name that needs to be deleted
|
* @param {String} username The name that needs to be deleted
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.deleteUser = function(username) {
|
deleteUser(username) {
|
||||||
return this.deleteUserWithHttpInfo(username)
|
return this.deleteUserWithHttpInfo(username)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -256,8 +242,8 @@
|
|||||||
* @param {String} username The name that needs to be fetched. Use user1 for testing.
|
* @param {String} username The name that needs to be fetched. Use user1 for testing.
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.getUserByNameWithHttpInfo = function(username) {
|
getUserByNameWithHttpInfo(username) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -265,20 +251,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = User;
|
let returnType = User;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'GET',
|
'/user/{username}', 'GET',
|
||||||
@@ -293,7 +279,7 @@
|
|||||||
* @param {String} username The name that needs to be fetched. Use user1 for testing.
|
* @param {String} username The name that needs to be fetched. Use user1 for testing.
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
|
||||||
*/
|
*/
|
||||||
this.getUserByName = function(username) {
|
getUserByName(username) {
|
||||||
return this.getUserByNameWithHttpInfo(username)
|
return this.getUserByNameWithHttpInfo(username)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -308,8 +294,8 @@
|
|||||||
* @param {String} password The password for login in clear text
|
* @param {String} password The password for login in clear text
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link 'String'} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link 'String'} and HTTP response
|
||||||
*/
|
*/
|
||||||
this.loginUserWithHttpInfo = function(username, password) {
|
loginUserWithHttpInfo(username, password) {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -322,21 +308,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
'username': username,
|
'username': username,
|
||||||
'password': password
|
'password': password
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = 'String';
|
let returnType = 'String';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/login', 'GET',
|
'/user/login', 'GET',
|
||||||
@@ -352,7 +338,7 @@
|
|||||||
* @param {String} password The password for login in clear text
|
* @param {String} password The password for login in clear text
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link 'String'}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link 'String'}
|
||||||
*/
|
*/
|
||||||
this.loginUser = function(username, password) {
|
loginUser(username, password) {
|
||||||
return this.loginUserWithHttpInfo(username, password)
|
return this.loginUserWithHttpInfo(username, password)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -365,23 +351,23 @@
|
|||||||
*
|
*
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.logoutUserWithHttpInfo = function() {
|
logoutUserWithHttpInfo() {
|
||||||
var postBody = null;
|
let postBody = null;
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/logout', 'GET',
|
'/user/logout', 'GET',
|
||||||
@@ -395,7 +381,7 @@
|
|||||||
*
|
*
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.logoutUser = function() {
|
logoutUser() {
|
||||||
return this.logoutUserWithHttpInfo()
|
return this.logoutUserWithHttpInfo()
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
@@ -410,8 +396,8 @@
|
|||||||
* @param {module:model/User} body Updated user object
|
* @param {module:model/User} body Updated user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
this.updateUserWithHttpInfo = function(username, body) {
|
updateUserWithHttpInfo(username, body) {
|
||||||
var postBody = body;
|
let postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
@@ -424,20 +410,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var pathParams = {
|
let pathParams = {
|
||||||
'username': username
|
'username': username
|
||||||
};
|
};
|
||||||
var queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
var headerParams = {
|
let headerParams = {
|
||||||
};
|
};
|
||||||
var formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var authNames = [];
|
let authNames = [];
|
||||||
var contentTypes = [];
|
let contentTypes = [];
|
||||||
var accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
var returnType = null;
|
let returnType = null;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/{username}', 'PUT',
|
'/user/{username}', 'PUT',
|
||||||
@@ -453,13 +439,12 @@
|
|||||||
* @param {module:model/User} body Updated user object
|
* @param {module:model/User} body Updated user object
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
this.updateUser = function(username, body) {
|
updateUser(username, body) {
|
||||||
return this.updateUserWithHttpInfo(username, body)
|
return this.updateUserWithHttpInfo(username, body)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|||||||
@@ -7,23 +7,53 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from './ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import AdditionalPropertiesClass from './model/AdditionalPropertiesClass';
|
||||||
define(['ApiClient', 'model/AdditionalPropertiesClass', 'model/Animal', 'model/AnimalFarm', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/Capitalization', 'model/Category', 'model/ClassModel', 'model/Client', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterEnum', 'model/OuterNumber', 'model/OuterString', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/User', 'model/Cat', 'model/Dog', 'api/FakeApi', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
|
import Animal from './model/Animal';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import AnimalFarm from './model/AnimalFarm';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
import ApiResponse from './model/ApiResponse';
|
||||||
module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesClass'), require('./model/Animal'), require('./model/AnimalFarm'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/Capitalization'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterBoolean'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/OuterNumber'), require('./model/OuterString'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./model/Cat'), require('./model/Dog'), require('./api/FakeApi'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
|
import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
|
||||||
}
|
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
|
||||||
}(function(ApiClient, AdditionalPropertiesClass, Animal, AnimalFarm, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, Capitalization, Category, ClassModel, Client, EnumArrays, EnumClass, EnumTest, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterBoolean, OuterComposite, OuterEnum, OuterNumber, OuterString, Pet, ReadOnlyFirst, SpecialModelName, Tag, User, Cat, Dog, FakeApi, PetApi, StoreApi, UserApi) {
|
import ArrayTest from './model/ArrayTest';
|
||||||
'use strict';
|
import Capitalization from './model/Capitalization';
|
||||||
|
import Category from './model/Category';
|
||||||
|
import ClassModel from './model/ClassModel';
|
||||||
|
import Client from './model/Client';
|
||||||
|
import EnumArrays from './model/EnumArrays';
|
||||||
|
import EnumClass from './model/EnumClass';
|
||||||
|
import EnumTest from './model/EnumTest';
|
||||||
|
import FormatTest from './model/FormatTest';
|
||||||
|
import HasOnlyReadOnly from './model/HasOnlyReadOnly';
|
||||||
|
import List from './model/List';
|
||||||
|
import MapTest from './model/MapTest';
|
||||||
|
import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass';
|
||||||
|
import Model200Response from './model/Model200Response';
|
||||||
|
import ModelReturn from './model/ModelReturn';
|
||||||
|
import Name from './model/Name';
|
||||||
|
import NumberOnly from './model/NumberOnly';
|
||||||
|
import Order from './model/Order';
|
||||||
|
import OuterBoolean from './model/OuterBoolean';
|
||||||
|
import OuterComposite from './model/OuterComposite';
|
||||||
|
import OuterEnum from './model/OuterEnum';
|
||||||
|
import OuterNumber from './model/OuterNumber';
|
||||||
|
import OuterString from './model/OuterString';
|
||||||
|
import Pet from './model/Pet';
|
||||||
|
import ReadOnlyFirst from './model/ReadOnlyFirst';
|
||||||
|
import SpecialModelName from './model/SpecialModelName';
|
||||||
|
import Tag from './model/Tag';
|
||||||
|
import User from './model/User';
|
||||||
|
import Cat from './model/Cat';
|
||||||
|
import Dog from './model/Dog';
|
||||||
|
import FakeApi from './api/FakeApi';
|
||||||
|
import PetApi from './api/PetApi';
|
||||||
|
import StoreApi from './api/StoreApi';
|
||||||
|
import UserApi from './api/UserApi';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__.<br>
|
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__.<br>
|
||||||
@@ -56,213 +86,250 @@
|
|||||||
* @module index
|
* @module index
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export {
|
||||||
/**
|
/**
|
||||||
* The ApiClient constructor.
|
* The ApiClient constructor.
|
||||||
* @property {module:ApiClient}
|
* @property {module:ApiClient}
|
||||||
*/
|
*/
|
||||||
ApiClient: ApiClient,
|
ApiClient,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AdditionalPropertiesClass model constructor.
|
* The AdditionalPropertiesClass model constructor.
|
||||||
* @property {module:model/AdditionalPropertiesClass}
|
* @property {module:model/AdditionalPropertiesClass}
|
||||||
*/
|
*/
|
||||||
AdditionalPropertiesClass: AdditionalPropertiesClass,
|
AdditionalPropertiesClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Animal model constructor.
|
* The Animal model constructor.
|
||||||
* @property {module:model/Animal}
|
* @property {module:model/Animal}
|
||||||
*/
|
*/
|
||||||
Animal: Animal,
|
Animal,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AnimalFarm model constructor.
|
* The AnimalFarm model constructor.
|
||||||
* @property {module:model/AnimalFarm}
|
* @property {module:model/AnimalFarm}
|
||||||
*/
|
*/
|
||||||
AnimalFarm: AnimalFarm,
|
AnimalFarm,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ApiResponse model constructor.
|
* The ApiResponse model constructor.
|
||||||
* @property {module:model/ApiResponse}
|
* @property {module:model/ApiResponse}
|
||||||
*/
|
*/
|
||||||
ApiResponse: ApiResponse,
|
ApiResponse,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfArrayOfNumberOnly model constructor.
|
* The ArrayOfArrayOfNumberOnly model constructor.
|
||||||
* @property {module:model/ArrayOfArrayOfNumberOnly}
|
* @property {module:model/ArrayOfArrayOfNumberOnly}
|
||||||
*/
|
*/
|
||||||
ArrayOfArrayOfNumberOnly: ArrayOfArrayOfNumberOnly,
|
ArrayOfArrayOfNumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfNumberOnly model constructor.
|
* The ArrayOfNumberOnly model constructor.
|
||||||
* @property {module:model/ArrayOfNumberOnly}
|
* @property {module:model/ArrayOfNumberOnly}
|
||||||
*/
|
*/
|
||||||
ArrayOfNumberOnly: ArrayOfNumberOnly,
|
ArrayOfNumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayTest model constructor.
|
* The ArrayTest model constructor.
|
||||||
* @property {module:model/ArrayTest}
|
* @property {module:model/ArrayTest}
|
||||||
*/
|
*/
|
||||||
ArrayTest: ArrayTest,
|
ArrayTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Capitalization model constructor.
|
* The Capitalization model constructor.
|
||||||
* @property {module:model/Capitalization}
|
* @property {module:model/Capitalization}
|
||||||
*/
|
*/
|
||||||
Capitalization: Capitalization,
|
Capitalization,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Category model constructor.
|
* The Category model constructor.
|
||||||
* @property {module:model/Category}
|
* @property {module:model/Category}
|
||||||
*/
|
*/
|
||||||
Category: Category,
|
Category,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ClassModel model constructor.
|
* The ClassModel model constructor.
|
||||||
* @property {module:model/ClassModel}
|
* @property {module:model/ClassModel}
|
||||||
*/
|
*/
|
||||||
ClassModel: ClassModel,
|
ClassModel,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Client model constructor.
|
* The Client model constructor.
|
||||||
* @property {module:model/Client}
|
* @property {module:model/Client}
|
||||||
*/
|
*/
|
||||||
Client: Client,
|
Client,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumArrays model constructor.
|
* The EnumArrays model constructor.
|
||||||
* @property {module:model/EnumArrays}
|
* @property {module:model/EnumArrays}
|
||||||
*/
|
*/
|
||||||
EnumArrays: EnumArrays,
|
EnumArrays,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumClass model constructor.
|
* The EnumClass model constructor.
|
||||||
* @property {module:model/EnumClass}
|
* @property {module:model/EnumClass}
|
||||||
*/
|
*/
|
||||||
EnumClass: EnumClass,
|
EnumClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumTest model constructor.
|
* The EnumTest model constructor.
|
||||||
* @property {module:model/EnumTest}
|
* @property {module:model/EnumTest}
|
||||||
*/
|
*/
|
||||||
EnumTest: EnumTest,
|
EnumTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FormatTest model constructor.
|
* The FormatTest model constructor.
|
||||||
* @property {module:model/FormatTest}
|
* @property {module:model/FormatTest}
|
||||||
*/
|
*/
|
||||||
FormatTest: FormatTest,
|
FormatTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The HasOnlyReadOnly model constructor.
|
* The HasOnlyReadOnly model constructor.
|
||||||
* @property {module:model/HasOnlyReadOnly}
|
* @property {module:model/HasOnlyReadOnly}
|
||||||
*/
|
*/
|
||||||
HasOnlyReadOnly: HasOnlyReadOnly,
|
HasOnlyReadOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The List model constructor.
|
* The List model constructor.
|
||||||
* @property {module:model/List}
|
* @property {module:model/List}
|
||||||
*/
|
*/
|
||||||
List: List,
|
List,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MapTest model constructor.
|
* The MapTest model constructor.
|
||||||
* @property {module:model/MapTest}
|
* @property {module:model/MapTest}
|
||||||
*/
|
*/
|
||||||
MapTest: MapTest,
|
MapTest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MixedPropertiesAndAdditionalPropertiesClass model constructor.
|
* The MixedPropertiesAndAdditionalPropertiesClass model constructor.
|
||||||
* @property {module:model/MixedPropertiesAndAdditionalPropertiesClass}
|
* @property {module:model/MixedPropertiesAndAdditionalPropertiesClass}
|
||||||
*/
|
*/
|
||||||
MixedPropertiesAndAdditionalPropertiesClass: MixedPropertiesAndAdditionalPropertiesClass,
|
MixedPropertiesAndAdditionalPropertiesClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Model200Response model constructor.
|
* The Model200Response model constructor.
|
||||||
* @property {module:model/Model200Response}
|
* @property {module:model/Model200Response}
|
||||||
*/
|
*/
|
||||||
Model200Response: Model200Response,
|
Model200Response,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ModelReturn model constructor.
|
* The ModelReturn model constructor.
|
||||||
* @property {module:model/ModelReturn}
|
* @property {module:model/ModelReturn}
|
||||||
*/
|
*/
|
||||||
ModelReturn: ModelReturn,
|
ModelReturn,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Name model constructor.
|
* The Name model constructor.
|
||||||
* @property {module:model/Name}
|
* @property {module:model/Name}
|
||||||
*/
|
*/
|
||||||
Name: Name,
|
Name,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The NumberOnly model constructor.
|
* The NumberOnly model constructor.
|
||||||
* @property {module:model/NumberOnly}
|
* @property {module:model/NumberOnly}
|
||||||
*/
|
*/
|
||||||
NumberOnly: NumberOnly,
|
NumberOnly,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Order model constructor.
|
* The Order model constructor.
|
||||||
* @property {module:model/Order}
|
* @property {module:model/Order}
|
||||||
*/
|
*/
|
||||||
Order: Order,
|
Order,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterBoolean model constructor.
|
* The OuterBoolean model constructor.
|
||||||
* @property {module:model/OuterBoolean}
|
* @property {module:model/OuterBoolean}
|
||||||
*/
|
*/
|
||||||
OuterBoolean: OuterBoolean,
|
OuterBoolean,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterComposite model constructor.
|
* The OuterComposite model constructor.
|
||||||
* @property {module:model/OuterComposite}
|
* @property {module:model/OuterComposite}
|
||||||
*/
|
*/
|
||||||
OuterComposite: OuterComposite,
|
OuterComposite,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterEnum model constructor.
|
* The OuterEnum model constructor.
|
||||||
* @property {module:model/OuterEnum}
|
* @property {module:model/OuterEnum}
|
||||||
*/
|
*/
|
||||||
OuterEnum: OuterEnum,
|
OuterEnum,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterNumber model constructor.
|
* The OuterNumber model constructor.
|
||||||
* @property {module:model/OuterNumber}
|
* @property {module:model/OuterNumber}
|
||||||
*/
|
*/
|
||||||
OuterNumber: OuterNumber,
|
OuterNumber,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterString model constructor.
|
* The OuterString model constructor.
|
||||||
* @property {module:model/OuterString}
|
* @property {module:model/OuterString}
|
||||||
*/
|
*/
|
||||||
OuterString: OuterString,
|
OuterString,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Pet model constructor.
|
* The Pet model constructor.
|
||||||
* @property {module:model/Pet}
|
* @property {module:model/Pet}
|
||||||
*/
|
*/
|
||||||
Pet: Pet,
|
Pet,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ReadOnlyFirst model constructor.
|
* The ReadOnlyFirst model constructor.
|
||||||
* @property {module:model/ReadOnlyFirst}
|
* @property {module:model/ReadOnlyFirst}
|
||||||
*/
|
*/
|
||||||
ReadOnlyFirst: ReadOnlyFirst,
|
ReadOnlyFirst,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SpecialModelName model constructor.
|
* The SpecialModelName model constructor.
|
||||||
* @property {module:model/SpecialModelName}
|
* @property {module:model/SpecialModelName}
|
||||||
*/
|
*/
|
||||||
SpecialModelName: SpecialModelName,
|
SpecialModelName,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Tag model constructor.
|
* The Tag model constructor.
|
||||||
* @property {module:model/Tag}
|
* @property {module:model/Tag}
|
||||||
*/
|
*/
|
||||||
Tag: Tag,
|
Tag,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The User model constructor.
|
* The User model constructor.
|
||||||
* @property {module:model/User}
|
* @property {module:model/User}
|
||||||
*/
|
*/
|
||||||
User: User,
|
User,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Cat model constructor.
|
* The Cat model constructor.
|
||||||
* @property {module:model/Cat}
|
* @property {module:model/Cat}
|
||||||
*/
|
*/
|
||||||
Cat: Cat,
|
Cat,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Dog model constructor.
|
* The Dog model constructor.
|
||||||
* @property {module:model/Dog}
|
* @property {module:model/Dog}
|
||||||
*/
|
*/
|
||||||
Dog: Dog,
|
Dog,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FakeApi service constructor.
|
* The FakeApi service constructor.
|
||||||
* @property {module:api/FakeApi}
|
* @property {module:api/FakeApi}
|
||||||
*/
|
*/
|
||||||
FakeApi: FakeApi,
|
FakeApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The PetApi service constructor.
|
* The PetApi service constructor.
|
||||||
* @property {module:api/PetApi}
|
* @property {module:api/PetApi}
|
||||||
*/
|
*/
|
||||||
PetApi: PetApi,
|
PetApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The StoreApi service constructor.
|
* The StoreApi service constructor.
|
||||||
* @property {module:api/StoreApi}
|
* @property {module:api/StoreApi}
|
||||||
*/
|
*/
|
||||||
StoreApi: StoreApi,
|
StoreApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The UserApi service constructor.
|
* The UserApi service constructor.
|
||||||
* @property {module:api/UserApi}
|
* @property {module:api/UserApi}
|
||||||
*/
|
*/
|
||||||
UserApi: UserApi
|
UserApi
|
||||||
};
|
};
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.AdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/AdditionalPropertiesClass
|
* @module model/AdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class AdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/AdditionalPropertiesClass
|
* @alias module:model/AdditionalPropertiesClass
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new AdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_property')) {
|
if (data.hasOwnProperty('map_property')) {
|
||||||
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Object.<String, String>} map_property
|
* @member {Object.<String, String>} map_property
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_property'] = undefined;
|
map_property = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_of_map_property'] = undefined;
|
map_of_map_property = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,24 @@
|
|||||||
* @module model/Animal
|
* @module model/Animal
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Animal {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Animal</code>.
|
* Constructs a new <code>Animal</code>.
|
||||||
* @alias module:model/Animal
|
* @alias module:model/Animal
|
||||||
* @class
|
* @class
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
_this['className'] = className;
|
constructor(className) {
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this['className'] = className;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/Animal} obj Optional instance to populate.
|
* @param {module:model/Animal} obj Optional instance to populate.
|
||||||
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Animal();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('className')) {
|
if (data.hasOwnProperty('className')) {
|
||||||
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
||||||
@@ -77,16 +70,20 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} className
|
* @member {String} className
|
||||||
*/
|
*/
|
||||||
exports.prototype['className'] = undefined;
|
className = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} color
|
* @member {String} color
|
||||||
* @default 'red'
|
* @default 'red'
|
||||||
*/
|
*/
|
||||||
exports.prototype['color'] = 'red';
|
color = 'red';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.AnimalFarm = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,20 +24,26 @@
|
|||||||
* @module model/AnimalFarm
|
* @module model/AnimalFarm
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class AnimalFarm {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AnimalFarm</code>.
|
* Constructs a new <code>AnimalFarm</code>.
|
||||||
* @alias module:model/AnimalFarm
|
* @alias module:model/AnimalFarm
|
||||||
* @class
|
* @class
|
||||||
* @extends Array
|
* @extends Array
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
_this = new Array();
|
|
||||||
Object.setPrototypeOf(_this, exports);
|
|
||||||
|
|
||||||
return _this;
|
constructor() {
|
||||||
};
|
|
||||||
|
this = new Array();
|
||||||
|
Object.setPrototypeOf(this, AnimalFarm);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -61,11 +52,15 @@
|
|||||||
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
||||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new AnimalFarm();
|
||||||
|
|
||||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@@ -73,7 +68,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ApiResponse = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,23 @@
|
|||||||
* @module model/ApiResponse
|
* @module model/ApiResponse
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ApiResponse {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ApiResponse</code>.
|
* Constructs a new <code>ApiResponse</code>.
|
||||||
* @alias module:model/ApiResponse
|
* @alias module:model/ApiResponse
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +48,13 @@
|
|||||||
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
||||||
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ApiResponse();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('code')) {
|
if (data.hasOwnProperty('code')) {
|
||||||
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
||||||
@@ -80,19 +72,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} code
|
* @member {Number} code
|
||||||
*/
|
*/
|
||||||
exports.prototype['code'] = undefined;
|
code = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} type
|
* @member {String} type
|
||||||
*/
|
*/
|
||||||
exports.prototype['type'] = undefined;
|
type = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} message
|
* @member {String} message
|
||||||
*/
|
*/
|
||||||
exports.prototype['message'] = undefined;
|
message = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/ArrayOfArrayOfNumberOnly
|
* @module model/ArrayOfArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayOfArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfArrayOfNumberOnly
|
* @alias module:model/ArrayOfArrayOfNumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
||||||
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['ArrayArrayNumber'] = undefined;
|
ArrayArrayNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/ArrayOfNumberOnly
|
* @module model/ArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfNumberOnly
|
* @alias module:model/ArrayOfNumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayNumber')) {
|
if (data.hasOwnProperty('ArrayNumber')) {
|
||||||
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<Number>} ArrayNumber
|
* @member {Array.<Number>} ArrayNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['ArrayNumber'] = undefined;
|
ArrayNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import ReadOnlyFirst from './ReadOnlyFirst';
|
||||||
define(['ApiClient', 'model/ReadOnlyFirst'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ArrayTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ReadOnlyFirst);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, ReadOnlyFirst) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +24,23 @@
|
|||||||
* @module model/ArrayTest
|
* @module model/ArrayTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ArrayTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayTest</code>.
|
* Constructs a new <code>ArrayTest</code>.
|
||||||
* @alias module:model/ArrayTest
|
* @alias module:model/ArrayTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
||||||
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ArrayTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('array_of_string')) {
|
if (data.hasOwnProperty('array_of_string')) {
|
||||||
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
||||||
@@ -80,19 +73,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Array.<String>} array_of_string
|
* @member {Array.<String>} array_of_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_of_string'] = undefined;
|
array_of_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<Number>>} array_array_of_integer
|
* @member {Array.<Array.<Number>>} array_array_of_integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_array_of_integer'] = undefined;
|
array_array_of_integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_array_of_model'] = undefined;
|
array_array_of_model = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Capitalization = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/Capitalization
|
* @module model/Capitalization
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Capitalization {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Capitalization</code>.
|
* Constructs a new <code>Capitalization</code>.
|
||||||
* @alias module:model/Capitalization
|
* @alias module:model/Capitalization
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +38,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +48,13 @@
|
|||||||
* @param {module:model/Capitalization} obj Optional instance to populate.
|
* @param {module:model/Capitalization} obj Optional instance to populate.
|
||||||
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Capitalization();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('smallCamel')) {
|
if (data.hasOwnProperty('smallCamel')) {
|
||||||
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
||||||
@@ -92,32 +81,36 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} smallCamel
|
* @member {String} smallCamel
|
||||||
*/
|
*/
|
||||||
exports.prototype['smallCamel'] = undefined;
|
smallCamel = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} CapitalCamel
|
* @member {String} CapitalCamel
|
||||||
*/
|
*/
|
||||||
exports.prototype['CapitalCamel'] = undefined;
|
CapitalCamel = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} small_Snake
|
* @member {String} small_Snake
|
||||||
*/
|
*/
|
||||||
exports.prototype['small_Snake'] = undefined;
|
small_Snake = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} Capital_Snake
|
* @member {String} Capital_Snake
|
||||||
*/
|
*/
|
||||||
exports.prototype['Capital_Snake'] = undefined;
|
Capital_Snake = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} SCA_ETH_Flow_Points
|
* @member {String} SCA_ETH_Flow_Points
|
||||||
*/
|
*/
|
||||||
exports.prototype['SCA_ETH_Flow_Points'] = undefined;
|
SCA_ETH_Flow_Points = undefined;
|
||||||
/**
|
/**
|
||||||
* Name of the pet
|
* Name of the pet
|
||||||
* @member {String} ATT_NAME
|
* @member {String} ATT_NAME
|
||||||
*/
|
*/
|
||||||
exports.prototype['ATT_NAME'] = undefined;
|
ATT_NAME = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +24,7 @@
|
|||||||
* @module model/Cat
|
* @module model/Cat
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Cat {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Cat</code>.
|
* Constructs a new <code>Cat</code>.
|
||||||
* @alias module:model/Cat
|
* @alias module:model/Cat
|
||||||
@@ -47,11 +32,17 @@
|
|||||||
* @extends module:model/Animal
|
* @extends module:model/Animal
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
Animal.call(_this, className);
|
|
||||||
|
|
||||||
};
|
constructor(className) {
|
||||||
|
|
||||||
|
|
||||||
|
Animal.call(this, className);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,10 +51,15 @@
|
|||||||
* @param {module:model/Cat} obj Optional instance to populate.
|
* @param {module:model/Cat} obj Optional instance to populate.
|
||||||
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Cat();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('declawed')) {
|
if (data.hasOwnProperty('declawed')) {
|
||||||
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
||||||
}
|
}
|
||||||
@@ -71,17 +67,18 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.prototype = Object.create(Animal.prototype);
|
|
||||||
exports.prototype.constructor = exports;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Boolean} declawed
|
* @member {Boolean} declawed
|
||||||
*/
|
*/
|
||||||
exports.prototype['declawed'] = undefined;
|
declawed = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Category = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/Category
|
* @module model/Category
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Category {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Category</code>.
|
* Constructs a new <code>Category</code>.
|
||||||
* @alias module:model/Category
|
* @alias module:model/Category
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/Category} obj Optional instance to populate.
|
* @param {module:model/Category} obj Optional instance to populate.
|
||||||
* @return {module:model/Category} The populated <code>Category</code> instance.
|
* @return {module:model/Category} The populated <code>Category</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Category();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ClassModel = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,24 @@
|
|||||||
* @module model/ClassModel
|
* @module model/ClassModel
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ClassModel {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ClassModel</code>.
|
* Constructs a new <code>ClassModel</code>.
|
||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
* @alias module:model/ClassModel
|
* @alias module:model/ClassModel
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +49,13 @@
|
|||||||
* @param {module:model/ClassModel} obj Optional instance to populate.
|
* @param {module:model/ClassModel} obj Optional instance to populate.
|
||||||
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ClassModel();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('_class')) {
|
if (data.hasOwnProperty('_class')) {
|
||||||
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
||||||
@@ -73,11 +67,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} _class
|
* @member {String} _class
|
||||||
*/
|
*/
|
||||||
exports.prototype['_class'] = undefined;
|
_class = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Client = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/Client
|
* @module model/Client
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Client {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Client</code>.
|
* Constructs a new <code>Client</code>.
|
||||||
* @alias module:model/Client
|
* @alias module:model/Client
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/Client} obj Optional instance to populate.
|
* @param {module:model/Client} obj Optional instance to populate.
|
||||||
* @return {module:model/Client} The populated <code>Client</code> instance.
|
* @return {module:model/Client} The populated <code>Client</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Client();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('client')) {
|
if (data.hasOwnProperty('client')) {
|
||||||
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} client
|
* @member {String} client
|
||||||
*/
|
*/
|
||||||
exports.prototype['client'] = undefined;
|
client = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Dog = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +24,7 @@
|
|||||||
* @module model/Dog
|
* @module model/Dog
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Dog {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Dog</code>.
|
* Constructs a new <code>Dog</code>.
|
||||||
* @alias module:model/Dog
|
* @alias module:model/Dog
|
||||||
@@ -47,11 +32,17 @@
|
|||||||
* @extends module:model/Animal
|
* @extends module:model/Animal
|
||||||
* @param className {String}
|
* @param className {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(className) {
|
|
||||||
var _this = this;
|
|
||||||
Animal.call(_this, className);
|
|
||||||
|
|
||||||
};
|
constructor(className) {
|
||||||
|
|
||||||
|
|
||||||
|
Animal.call(this, className);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,10 +51,15 @@
|
|||||||
* @param {module:model/Dog} obj Optional instance to populate.
|
* @param {module:model/Dog} obj Optional instance to populate.
|
||||||
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Dog();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('breed')) {
|
if (data.hasOwnProperty('breed')) {
|
||||||
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
||||||
}
|
}
|
||||||
@@ -71,17 +67,18 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.prototype = Object.create(Animal.prototype);
|
|
||||||
exports.prototype.constructor = exports;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {String} breed
|
* @member {String} breed
|
||||||
*/
|
*/
|
||||||
exports.prototype['breed'] = undefined;
|
breed = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumArrays = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/EnumArrays
|
* @module model/EnumArrays
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class EnumArrays {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumArrays</code>.
|
* Constructs a new <code>EnumArrays</code>.
|
||||||
* @alias module:model/EnumArrays
|
* @alias module:model/EnumArrays
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
||||||
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new EnumArrays();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('just_symbol')) {
|
if (data.hasOwnProperty('just_symbol')) {
|
||||||
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
||||||
@@ -76,11 +69,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
||||||
*/
|
*/
|
||||||
exports.prototype['just_symbol'] = undefined;
|
just_symbol = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
||||||
*/
|
*/
|
||||||
exports.prototype['array_enum'] = undefined;
|
array_enum = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,37 +85,43 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.JustSymbolEnum = {
|
static JustSymbolEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: ">="
|
* value: ">="
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "$"
|
* value: "$"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"DOLLAR": "$" };
|
"DOLLAR": "$"
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>arrayEnum</code> property.
|
* Allowed values for the <code>arrayEnum</code> property.
|
||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.ArrayEnumEnum = {
|
static ArrayEnumEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "fish"
|
* value: "fish"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"fish": "fish",
|
"fish": "fish",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "crab"
|
* value: "crab"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"crab": "crab" };
|
"crab": "crab"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,12 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumClass = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,33 +20,38 @@
|
|||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export default class EnumClass {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "_abc"
|
* value: "_abc"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"_abc": "_abc",
|
_abc = "_abc";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "-efg"
|
* value: "-efg"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-efg": "-efg",
|
-efg = "-efg";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "(xyz)"
|
* value: "(xyz)"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"(xyz)": "(xyz)" };
|
(xyz) = "(xyz)";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
static constructFromObject(object) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import OuterEnum from './OuterEnum';
|
||||||
define(['ApiClient', 'model/OuterEnum'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./OuterEnum'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.EnumTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterEnum);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, OuterEnum) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,20 +24,23 @@
|
|||||||
* @module model/EnumTest
|
* @module model/EnumTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class EnumTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumTest</code>.
|
* Constructs a new <code>EnumTest</code>.
|
||||||
* @alias module:model/EnumTest
|
* @alias module:model/EnumTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -61,9 +49,13 @@
|
|||||||
* @param {module:model/EnumTest} obj Optional instance to populate.
|
* @param {module:model/EnumTest} obj Optional instance to populate.
|
||||||
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new EnumTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('enum_string')) {
|
if (data.hasOwnProperty('enum_string')) {
|
||||||
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
||||||
@@ -84,19 +76,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_string'] = undefined;
|
enum_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_integer'] = undefined;
|
enum_integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
||||||
*/
|
*/
|
||||||
exports.prototype['enum_number'] = undefined;
|
enum_number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterEnum} outerEnum
|
* @member {module:model/OuterEnum} outerEnum
|
||||||
*/
|
*/
|
||||||
exports.prototype['outerEnum'] = undefined;
|
outerEnum = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -104,59 +100,69 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumStringEnum = {
|
static EnumStringEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "UPPER"
|
* value: "UPPER"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"UPPER": "UPPER",
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "lower"
|
* value: "lower"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"lower": "lower",
|
"lower": "lower",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: ""
|
* value: ""
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"empty": "" };
|
"empty": ""
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>enum_integer</code> property.
|
* Allowed values for the <code>enum_integer</code> property.
|
||||||
* @enum {Number}
|
* @enum {Number}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumIntegerEnum = {
|
static EnumIntegerEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: 1
|
* value: 1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"1": 1,
|
"1": 1,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: -1
|
* value: -1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-1": -1 };
|
"-1": -1
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed values for the <code>enum_number</code> property.
|
* Allowed values for the <code>enum_number</code> property.
|
||||||
* @enum {Number}
|
* @enum {Number}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.EnumNumberEnum = {
|
static EnumNumberEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: 1.1
|
* value: 1.1
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"1.1": 1.1,
|
"1.1": 1.1,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: -1.2
|
* value: -1.2
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-1.2": -1.2 };
|
"-1.2": -1.2
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.FormatTest = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +23,7 @@
|
|||||||
* @module model/FormatTest
|
* @module model/FormatTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class FormatTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>FormatTest</code>.
|
* Constructs a new <code>FormatTest</code>.
|
||||||
* @alias module:model/FormatTest
|
* @alias module:model/FormatTest
|
||||||
@@ -49,23 +33,17 @@
|
|||||||
* @param _date {Date}
|
* @param _date {Date}
|
||||||
* @param password {String}
|
* @param password {String}
|
||||||
*/
|
*/
|
||||||
var exports = function(_number, _byte, _date, password) {
|
|
||||||
var _this = this;
|
constructor(_number, _byte, _date, password) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_this['number'] = _number;
|
|
||||||
|
this['number'] = _number;this['byte'] = _byte;this['date'] = _date;this['password'] = password;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
_this['byte'] = _byte;
|
|
||||||
|
|
||||||
_this['date'] = _date;
|
|
||||||
|
|
||||||
|
|
||||||
_this['password'] = password;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -74,9 +52,13 @@
|
|||||||
* @param {module:model/FormatTest} obj Optional instance to populate.
|
* @param {module:model/FormatTest} obj Optional instance to populate.
|
||||||
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new FormatTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('integer')) {
|
if (data.hasOwnProperty('integer')) {
|
||||||
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
||||||
@@ -124,59 +106,63 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} integer
|
* @member {Number} integer
|
||||||
*/
|
*/
|
||||||
exports.prototype['integer'] = undefined;
|
integer = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} int32
|
* @member {Number} int32
|
||||||
*/
|
*/
|
||||||
exports.prototype['int32'] = undefined;
|
int32 = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} int64
|
* @member {Number} int64
|
||||||
*/
|
*/
|
||||||
exports.prototype['int64'] = undefined;
|
int64 = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} number
|
* @member {Number} number
|
||||||
*/
|
*/
|
||||||
exports.prototype['number'] = undefined;
|
number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} float
|
* @member {Number} float
|
||||||
*/
|
*/
|
||||||
exports.prototype['float'] = undefined;
|
float = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} double
|
* @member {Number} double
|
||||||
*/
|
*/
|
||||||
exports.prototype['double'] = undefined;
|
double = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} string
|
* @member {String} string
|
||||||
*/
|
*/
|
||||||
exports.prototype['string'] = undefined;
|
string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Blob} byte
|
* @member {Blob} byte
|
||||||
*/
|
*/
|
||||||
exports.prototype['byte'] = undefined;
|
byte = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Blob} binary
|
* @member {Blob} binary
|
||||||
*/
|
*/
|
||||||
exports.prototype['binary'] = undefined;
|
binary = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} date
|
* @member {Date} date
|
||||||
*/
|
*/
|
||||||
exports.prototype['date'] = undefined;
|
date = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} dateTime
|
* @member {Date} dateTime
|
||||||
*/
|
*/
|
||||||
exports.prototype['dateTime'] = undefined;
|
dateTime = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} uuid
|
* @member {String} uuid
|
||||||
*/
|
*/
|
||||||
exports.prototype['uuid'] = undefined;
|
uuid = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} password
|
* @member {String} password
|
||||||
*/
|
*/
|
||||||
exports.prototype['password'] = undefined;
|
password = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/HasOnlyReadOnly
|
* @module model/HasOnlyReadOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class HasOnlyReadOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>HasOnlyReadOnly</code>.
|
* Constructs a new <code>HasOnlyReadOnly</code>.
|
||||||
* @alias module:model/HasOnlyReadOnly
|
* @alias module:model/HasOnlyReadOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new HasOnlyReadOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} bar
|
* @member {String} bar
|
||||||
*/
|
*/
|
||||||
exports.prototype['bar'] = undefined;
|
bar = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} foo
|
* @member {String} foo
|
||||||
*/
|
*/
|
||||||
exports.prototype['foo'] = undefined;
|
foo = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.List = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/List
|
* @module model/List
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class List {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>List</code>.
|
* Constructs a new <code>List</code>.
|
||||||
* @alias module:model/List
|
* @alias module:model/List
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/List} obj Optional instance to populate.
|
* @param {module:model/List} obj Optional instance to populate.
|
||||||
* @return {module:model/List} The populated <code>List</code> instance.
|
* @return {module:model/List} The populated <code>List</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new List();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('123-list')) {
|
if (data.hasOwnProperty('123-list')) {
|
||||||
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} 123-list
|
* @member {String} 123-list
|
||||||
*/
|
*/
|
||||||
exports.prototype['123-list'] = undefined;
|
123-list = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/MapTest
|
* @module model/MapTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class MapTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MapTest</code>.
|
* Constructs a new <code>MapTest</code>.
|
||||||
* @alias module:model/MapTest
|
* @alias module:model/MapTest
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/MapTest} obj Optional instance to populate.
|
* @param {module:model/MapTest} obj Optional instance to populate.
|
||||||
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new MapTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_map_of_string')) {
|
if (data.hasOwnProperty('map_map_of_string')) {
|
||||||
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
||||||
@@ -76,11 +69,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_map_of_string'] = undefined;
|
map_map_of_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['map_of_enum_string'] = undefined;
|
map_of_enum_string = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,20 +85,23 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.InnerEnum = {
|
static InnerEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "UPPER"
|
* value: "UPPER"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"UPPER": "UPPER",
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "lower"
|
* value: "lower"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"lower": "lower" };
|
"lower": "lower"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,14 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Animal from './Animal';
|
||||||
define(['ApiClient', 'model/Animal'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Animal) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +24,23 @@
|
|||||||
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('uuid')) {
|
if (data.hasOwnProperty('uuid')) {
|
||||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||||
@@ -80,19 +73,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} uuid
|
* @member {String} uuid
|
||||||
*/
|
*/
|
||||||
exports.prototype['uuid'] = undefined;
|
uuid = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} dateTime
|
* @member {Date} dateTime
|
||||||
*/
|
*/
|
||||||
exports.prototype['dateTime'] = undefined;
|
dateTime = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, module:model/Animal>} map
|
* @member {Object.<String, module:model/Animal>} map
|
||||||
*/
|
*/
|
||||||
exports.prototype['map'] = undefined;
|
map = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Model200Response = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +23,24 @@
|
|||||||
* @module model/Model200Response
|
* @module model/Model200Response
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Model200Response {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Model200Response</code>.
|
* Constructs a new <code>Model200Response</code>.
|
||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
* @alias module:model/Model200Response
|
* @alias module:model/Model200Response
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +49,13 @@
|
|||||||
* @param {module:model/Model200Response} obj Optional instance to populate.
|
* @param {module:model/Model200Response} obj Optional instance to populate.
|
||||||
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Model200Response();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
@@ -77,15 +70,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} name
|
* @member {Number} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} class
|
* @member {String} class
|
||||||
*/
|
*/
|
||||||
exports.prototype['class'] = undefined;
|
class = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ModelReturn = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,24 @@
|
|||||||
* @module model/ModelReturn
|
* @module model/ModelReturn
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ModelReturn {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ModelReturn</code>.
|
* Constructs a new <code>ModelReturn</code>.
|
||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
* @alias module:model/ModelReturn
|
* @alias module:model/ModelReturn
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +49,13 @@
|
|||||||
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
||||||
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ModelReturn();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('return')) {
|
if (data.hasOwnProperty('return')) {
|
||||||
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
||||||
@@ -73,11 +67,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} return
|
* @member {Number} return
|
||||||
*/
|
*/
|
||||||
exports.prototype['return'] = undefined;
|
return = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Name = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +23,7 @@
|
|||||||
* @module model/Name
|
* @module model/Name
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Name {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Name</code>.
|
* Constructs a new <code>Name</code>.
|
||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
@@ -47,14 +31,17 @@
|
|||||||
* @class
|
* @class
|
||||||
* @param name {Number}
|
* @param name {Number}
|
||||||
*/
|
*/
|
||||||
var exports = function(name) {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
_this['name'] = name;
|
constructor(name) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
this['name'] = name;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +50,13 @@
|
|||||||
* @param {module:model/Name} obj Optional instance to populate.
|
* @param {module:model/Name} obj Optional instance to populate.
|
||||||
* @return {module:model/Name} The populated <code>Name</code> instance.
|
* @return {module:model/Name} The populated <code>Name</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Name();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
@@ -86,23 +77,27 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} name
|
* @member {Number} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} snake_case
|
* @member {Number} snake_case
|
||||||
*/
|
*/
|
||||||
exports.prototype['snake_case'] = undefined;
|
snake_case = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} property
|
* @member {String} property
|
||||||
*/
|
*/
|
||||||
exports.prototype['property'] = undefined;
|
property = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} 123Number
|
* @member {Number} 123Number
|
||||||
*/
|
*/
|
||||||
exports.prototype['123Number'] = undefined;
|
123Number = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/NumberOnly
|
* @module model/NumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class NumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>NumberOnly</code>.
|
* Constructs a new <code>NumberOnly</code>.
|
||||||
* @alias module:model/NumberOnly
|
* @alias module:model/NumberOnly
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
||||||
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new NumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('JustNumber')) {
|
if (data.hasOwnProperty('JustNumber')) {
|
||||||
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} JustNumber
|
* @member {Number} JustNumber
|
||||||
*/
|
*/
|
||||||
exports.prototype['JustNumber'] = undefined;
|
JustNumber = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Order = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/Order
|
* @module model/Order
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Order {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Order</code>.
|
* Constructs a new <code>Order</code>.
|
||||||
* @alias module:model/Order
|
* @alias module:model/Order
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +38,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -63,9 +48,13 @@
|
|||||||
* @param {module:model/Order} obj Optional instance to populate.
|
* @param {module:model/Order} obj Optional instance to populate.
|
||||||
* @return {module:model/Order} The populated <code>Order</code> instance.
|
* @return {module:model/Order} The populated <code>Order</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Order();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -92,29 +81,33 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} petId
|
* @member {Number} petId
|
||||||
*/
|
*/
|
||||||
exports.prototype['petId'] = undefined;
|
petId = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Number} quantity
|
* @member {Number} quantity
|
||||||
*/
|
*/
|
||||||
exports.prototype['quantity'] = undefined;
|
quantity = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Date} shipDate
|
* @member {Date} shipDate
|
||||||
*/
|
*/
|
||||||
exports.prototype['shipDate'] = undefined;
|
shipDate = undefined;
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
* @member {module:model/Order.StatusEnum} status
|
* @member {module:model/Order.StatusEnum} status
|
||||||
*/
|
*/
|
||||||
exports.prototype['status'] = undefined;
|
status = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Boolean} complete
|
* @member {Boolean} complete
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
exports.prototype['complete'] = false;
|
complete = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -122,25 +115,29 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.StatusEnum = {
|
static StatusEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "placed"
|
* value: "placed"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"placed": "placed",
|
"placed": "placed",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "approved"
|
* value: "approved"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"approved": "approved",
|
"approved": "approved",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "delivered"
|
* value: "delivered"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"delivered": "delivered" };
|
"delivered": "delivered"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterBoolean = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterBoolean
|
* @module model/OuterBoolean
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterBoolean {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterBoolean</code>.
|
* Constructs a new <code>OuterBoolean</code>.
|
||||||
* @alias module:model/OuterBoolean
|
* @alias module:model/OuterBoolean
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterBoolean} obj Optional instance to populate.
|
* @param {module:model/OuterBoolean} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterBoolean();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,16 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import OuterBoolean from './OuterBoolean';
|
||||||
define(['ApiClient', 'model/OuterBoolean', 'model/OuterNumber', 'model/OuterString'], factory);
|
import OuterNumber from './OuterNumber';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
import OuterString from './OuterString';
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./OuterBoolean'), require('./OuterNumber'), require('./OuterString'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterComposite = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, OuterBoolean, OuterNumber, OuterString) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,19 +26,23 @@
|
|||||||
* @module model/OuterComposite
|
* @module model/OuterComposite
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterComposite {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterComposite</code>.
|
* Constructs a new <code>OuterComposite</code>.
|
||||||
* @alias module:model/OuterComposite
|
* @alias module:model/OuterComposite
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -60,9 +51,13 @@
|
|||||||
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterComposite();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('my_number')) {
|
if (data.hasOwnProperty('my_number')) {
|
||||||
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
||||||
@@ -80,19 +75,23 @@
|
|||||||
/**
|
/**
|
||||||
* @member {module:model/OuterNumber} my_number
|
* @member {module:model/OuterNumber} my_number
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_number'] = undefined;
|
my_number = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterString} my_string
|
* @member {module:model/OuterString} my_string
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_string'] = undefined;
|
my_string = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/OuterBoolean} my_boolean
|
* @member {module:model/OuterBoolean} my_boolean
|
||||||
*/
|
*/
|
||||||
exports.prototype['my_boolean'] = undefined;
|
my_boolean = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,12 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterEnum = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,33 +20,38 @@
|
|||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export default class OuterEnum {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "placed"
|
* value: "placed"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"placed": "placed",
|
placed = "placed";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "approved"
|
* value: "approved"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"approved": "approved",
|
approved = "approved";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "delivered"
|
* value: "delivered"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"delivered": "delivered" };
|
delivered = "delivered";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
static constructFromObject(object) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterNumber = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterNumber
|
* @module model/OuterNumber
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterNumber {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterNumber</code>.
|
* Constructs a new <code>OuterNumber</code>.
|
||||||
* @alias module:model/OuterNumber
|
* @alias module:model/OuterNumber
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterNumber} obj Optional instance to populate.
|
* @param {module:model/OuterNumber} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterNumber();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.OuterString = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,16 +23,23 @@
|
|||||||
* @module model/OuterString
|
* @module model/OuterString
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class OuterString {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterString</code>.
|
* Constructs a new <code>OuterString</code>.
|
||||||
* @alias module:model/OuterString
|
* @alias module:model/OuterString
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterString</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OuterString</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -57,9 +48,13 @@
|
|||||||
* @param {module:model/OuterString} obj Optional instance to populate.
|
* @param {module:model/OuterString} obj Optional instance to populate.
|
||||||
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OuterString();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@@ -68,7 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,15 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
import Category from './Category';
|
||||||
define(['ApiClient', 'model/Category', 'model/Tag'], factory);
|
import Tag from './Tag';
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Pet = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Category, root.SwaggerPetstore.Tag);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Category, Tag) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +25,7 @@
|
|||||||
* @module model/Pet
|
* @module model/Pet
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Pet {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Pet</code>.
|
* Constructs a new <code>Pet</code>.
|
||||||
* @alias module:model/Pet
|
* @alias module:model/Pet
|
||||||
@@ -47,16 +33,17 @@
|
|||||||
* @param name {String}
|
* @param name {String}
|
||||||
* @param photoUrls {Array.<String>}
|
* @param photoUrls {Array.<String>}
|
||||||
*/
|
*/
|
||||||
var exports = function(name, photoUrls) {
|
|
||||||
var _this = this;
|
constructor(name, photoUrls) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_this['name'] = name;
|
|
||||||
_this['photoUrls'] = photoUrls;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
this['name'] = name;this['photoUrls'] = photoUrls;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -65,9 +52,13 @@
|
|||||||
* @param {module:model/Pet} obj Optional instance to populate.
|
* @param {module:model/Pet} obj Optional instance to populate.
|
||||||
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Pet();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -94,28 +85,32 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {module:model/Category} category
|
* @member {module:model/Category} category
|
||||||
*/
|
*/
|
||||||
exports.prototype['category'] = undefined;
|
category = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<String>} photoUrls
|
* @member {Array.<String>} photoUrls
|
||||||
*/
|
*/
|
||||||
exports.prototype['photoUrls'] = undefined;
|
photoUrls = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/Tag>} tags
|
* @member {Array.<module:model/Tag>} tags
|
||||||
*/
|
*/
|
||||||
exports.prototype['tags'] = undefined;
|
tags = undefined;
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
* @member {module:model/Pet.StatusEnum} status
|
* @member {module:model/Pet.StatusEnum} status
|
||||||
*/
|
*/
|
||||||
exports.prototype['status'] = undefined;
|
status = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -123,25 +118,29 @@
|
|||||||
* @enum {String}
|
* @enum {String}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
exports.StatusEnum = {
|
static StatusEnum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "available"
|
* value: "available"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"available": "available",
|
"available": "available",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "pending"
|
* value: "pending"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"pending": "pending",
|
"pending": "pending",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "sold"
|
* value: "sold"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"sold": "sold" };
|
"sold": "sold"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.ReadOnlyFirst = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/ReadOnlyFirst
|
* @module model/ReadOnlyFirst
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class ReadOnlyFirst {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ReadOnlyFirst</code>.
|
* Constructs a new <code>ReadOnlyFirst</code>.
|
||||||
* @alias module:model/ReadOnlyFirst
|
* @alias module:model/ReadOnlyFirst
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
||||||
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ReadOnlyFirst();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {String} bar
|
* @member {String} bar
|
||||||
*/
|
*/
|
||||||
exports.prototype['bar'] = undefined;
|
bar = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} baz
|
* @member {String} baz
|
||||||
*/
|
*/
|
||||||
exports.prototype['baz'] = undefined;
|
baz = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.SpecialModelName = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,17 +23,23 @@
|
|||||||
* @module model/SpecialModelName
|
* @module model/SpecialModelName
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class SpecialModelName {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>SpecialModelName</code>.
|
* Constructs a new <code>SpecialModelName</code>.
|
||||||
* @alias module:model/SpecialModelName
|
* @alias module:model/SpecialModelName
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -58,9 +48,13 @@
|
|||||||
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
||||||
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new SpecialModelName();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('$special[property.name]')) {
|
if (data.hasOwnProperty('$special[property.name]')) {
|
||||||
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
||||||
@@ -72,11 +66,15 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} $special[property.name]
|
* @member {Number} $special[property.name]
|
||||||
*/
|
*/
|
||||||
exports.prototype['$special[property.name]'] = undefined;
|
$special[property.name] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.Tag = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,18 +23,23 @@
|
|||||||
* @module model/Tag
|
* @module model/Tag
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class Tag {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Tag</code>.
|
* Constructs a new <code>Tag</code>.
|
||||||
* @alias module:model/Tag
|
* @alias module:model/Tag
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -59,9 +48,13 @@
|
|||||||
* @param {module:model/Tag} obj Optional instance to populate.
|
* @param {module:model/Tag} obj Optional instance to populate.
|
||||||
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Tag();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -76,15 +69,19 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
exports.prototype['name'] = undefined;
|
name = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,29 +7,13 @@
|
|||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
*
|
|
||||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
||||||
*
|
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
import ApiClient from '../ApiClient';
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.SwaggerPetstore) {
|
|
||||||
root.SwaggerPetstore = {};
|
|
||||||
}
|
|
||||||
root.SwaggerPetstore.User = factory(root.SwaggerPetstore.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,14 +23,14 @@
|
|||||||
* @module model/User
|
* @module model/User
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
export default class User {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>User</code>.
|
* Constructs a new <code>User</code>.
|
||||||
* @alias module:model/User
|
* @alias module:model/User
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -55,8 +39,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
@@ -65,9 +48,13 @@
|
|||||||
* @param {module:model/User} obj Optional instance to populate.
|
* @param {module:model/User} obj Optional instance to populate.
|
||||||
* @return {module:model/User} The populated <code>User</code> instance.
|
* @return {module:model/User} The populated <code>User</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new User();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
@@ -100,40 +87,44 @@
|
|||||||
/**
|
/**
|
||||||
* @member {Number} id
|
* @member {Number} id
|
||||||
*/
|
*/
|
||||||
exports.prototype['id'] = undefined;
|
id = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} username
|
* @member {String} username
|
||||||
*/
|
*/
|
||||||
exports.prototype['username'] = undefined;
|
username = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} firstName
|
* @member {String} firstName
|
||||||
*/
|
*/
|
||||||
exports.prototype['firstName'] = undefined;
|
firstName = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} lastName
|
* @member {String} lastName
|
||||||
*/
|
*/
|
||||||
exports.prototype['lastName'] = undefined;
|
lastName = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} email
|
* @member {String} email
|
||||||
*/
|
*/
|
||||||
exports.prototype['email'] = undefined;
|
email = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} password
|
* @member {String} password
|
||||||
*/
|
*/
|
||||||
exports.prototype['password'] = undefined;
|
password = undefined;
|
||||||
/**
|
/**
|
||||||
* @member {String} phone
|
* @member {String} phone
|
||||||
*/
|
*/
|
||||||
exports.prototype['phone'] = undefined;
|
phone = undefined;
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
* @member {Number} userStatus
|
* @member {Number} userStatus
|
||||||
*/
|
*/
|
||||||
exports.prototype['userStatus'] = undefined;
|
userStatus = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user