|
|
|
|
@@ -4,11 +4,191 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
|
|
|
|
|
|
|
|
Method | HTTP request | Description
|
|
|
|
|
------------- | ------------- | -------------
|
|
|
|
|
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
|
|
|
|
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
|
|
|
|
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
|
|
|
|
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
|
|
|
|
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
|
|
|
|
|
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
|
|
|
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="fakeOuterBooleanSerialize"></a>
|
|
|
|
|
# **fakeOuterBooleanSerialize**
|
|
|
|
|
> OuterBoolean fakeOuterBooleanSerialize(opts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test serialization of outer boolean types
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```javascript
|
|
|
|
|
var SwaggerPetstore = require('swagger_petstore');
|
|
|
|
|
|
|
|
|
|
var apiInstance = new SwaggerPetstore.FakeApi();
|
|
|
|
|
|
|
|
|
|
var opts = {
|
|
|
|
|
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
|
|
|
|
|
};
|
|
|
|
|
apiInstance.fakeOuterBooleanSerialize(opts).then(function(data) {
|
|
|
|
|
console.log('API called successfully. Returned data: ' + data);
|
|
|
|
|
}, function(error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
|
**body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**OuterBoolean**](OuterBoolean.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: Not defined
|
|
|
|
|
|
|
|
|
|
<a name="fakeOuterCompositeSerialize"></a>
|
|
|
|
|
# **fakeOuterCompositeSerialize**
|
|
|
|
|
> OuterComposite fakeOuterCompositeSerialize(opts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test serialization of object with outer number type
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```javascript
|
|
|
|
|
var SwaggerPetstore = require('swagger_petstore');
|
|
|
|
|
|
|
|
|
|
var apiInstance = new SwaggerPetstore.FakeApi();
|
|
|
|
|
|
|
|
|
|
var opts = {
|
|
|
|
|
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
|
|
|
|
};
|
|
|
|
|
apiInstance.fakeOuterCompositeSerialize(opts).then(function(data) {
|
|
|
|
|
console.log('API called successfully. Returned data: ' + data);
|
|
|
|
|
}, function(error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
|
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**OuterComposite**](OuterComposite.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: Not defined
|
|
|
|
|
|
|
|
|
|
<a name="fakeOuterNumberSerialize"></a>
|
|
|
|
|
# **fakeOuterNumberSerialize**
|
|
|
|
|
> OuterNumber fakeOuterNumberSerialize(opts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test serialization of outer number types
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```javascript
|
|
|
|
|
var SwaggerPetstore = require('swagger_petstore');
|
|
|
|
|
|
|
|
|
|
var apiInstance = new SwaggerPetstore.FakeApi();
|
|
|
|
|
|
|
|
|
|
var opts = {
|
|
|
|
|
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
|
|
|
|
|
};
|
|
|
|
|
apiInstance.fakeOuterNumberSerialize(opts).then(function(data) {
|
|
|
|
|
console.log('API called successfully. Returned data: ' + data);
|
|
|
|
|
}, function(error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
|
**body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**OuterNumber**](OuterNumber.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: Not defined
|
|
|
|
|
|
|
|
|
|
<a name="fakeOuterStringSerialize"></a>
|
|
|
|
|
# **fakeOuterStringSerialize**
|
|
|
|
|
> OuterString fakeOuterStringSerialize(opts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test serialization of outer string types
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
```javascript
|
|
|
|
|
var SwaggerPetstore = require('swagger_petstore');
|
|
|
|
|
|
|
|
|
|
var apiInstance = new SwaggerPetstore.FakeApi();
|
|
|
|
|
|
|
|
|
|
var opts = {
|
|
|
|
|
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
|
|
|
|
|
};
|
|
|
|
|
apiInstance.fakeOuterStringSerialize(opts).then(function(data) {
|
|
|
|
|
console.log('API called successfully. Returned data: ' + data);
|
|
|
|
|
}, function(error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
|
**body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
|
|
[**OuterString**](OuterString.md)
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
|
- **Accept**: Not defined
|
|
|
|
|
|
|
|
|
|
<a name="testClientModel"></a>
|
|
|
|
|
# **testClientModel**
|
|
|
|
|
> Client testClientModel(body)
|
|
|
|
|
|