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

@@ -141,7 +141,7 @@ No authorization required
<a name="placeOrder"></a>
# **placeOrder**
> Order placeOrder(order)
> Order placeOrder(body)
Place an order for a pet
@@ -150,8 +150,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, (error, data, response) => {
let body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
apiInstance.placeOrder(body, (error, data, response) => {
if (error) {
console.error(error);
} else {
@@ -164,7 +164,7 @@ apiInstance.placeOrder(order, (error, data, response) => {
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