Use JS ES6 as the default (#1825)

* set JS ES6 as the default

* update doc
This commit is contained in:
William Cheng
2019-01-07 11:43:11 +08:00
committed by GitHub
parent 651395d426
commit f0f214743e
64 changed files with 725 additions and 630 deletions

View File

@@ -138,7 +138,7 @@ No authorization required
<a name="placeOrder"></a>
# **placeOrder**
> Order placeOrder(order)
> Order placeOrder(body)
Place an order for a pet
@@ -147,8 +147,8 @@ Place an order for a pet
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.StoreApi();
let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
apiInstance.placeOrder(order).then((data) => {
let body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
apiInstance.placeOrder(body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -160,7 +160,7 @@ apiInstance.placeOrder(order).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type