update samples

This commit is contained in:
William Cheng
2019-03-25 22:44:05 +08:00
parent 3810d12086
commit f015363dbd
1398 changed files with 9844 additions and 4221 deletions

View File

@@ -14,8 +14,9 @@ Method | HTTP request | Description
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
<a name="createUser"></a>
# **createUser**
## createUser
> createUser(body)
Create user
@@ -23,6 +24,7 @@ Create user
This can only be done by the logged in user.
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -39,6 +41,7 @@ apiInstance.createUser(body, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| Created user object |
@@ -53,16 +56,18 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined
## createUsersWithArrayInput
<a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput**
> createUsersWithArrayInput(body)
Creates list of users with given input array
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -79,6 +84,7 @@ apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**[User]**](Array.md)| List of user object |
@@ -93,16 +99,18 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined
## createUsersWithListInput
<a name="createUsersWithListInput"></a>
# **createUsersWithListInput**
> createUsersWithListInput(body)
Creates list of users with given input array
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -119,6 +127,7 @@ apiInstance.createUsersWithListInput(body, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**[User]**](Array.md)| List of user object |
@@ -133,11 +142,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined
## deleteUser
<a name="deleteUser"></a>
# **deleteUser**
> deleteUser(username)
Delete user
@@ -145,6 +155,7 @@ Delete user
This can only be done by the logged in user.
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -161,6 +172,7 @@ apiInstance.deleteUser(username, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be deleted |
@@ -175,16 +187,18 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined
## getUserByName
<a name="getUserByName"></a>
# **getUserByName**
> User getUserByName(username)
Get user by user name
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -201,6 +215,7 @@ apiInstance.getUserByName(username, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
@@ -215,16 +230,18 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
## loginUser
<a name="loginUser"></a>
# **loginUser**
> String loginUser(username, password)
Logs user into the system
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -242,6 +259,7 @@ apiInstance.loginUser(username, password, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The user name for login |
@@ -257,16 +275,18 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
## logoutUser
<a name="logoutUser"></a>
# **logoutUser**
> logoutUser()
Logs out current logged in user session
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -281,6 +301,7 @@ apiInstance.logoutUser((error, data, response) => {
```
### Parameters
This endpoint does not need any parameter.
### Return type
@@ -293,11 +314,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined
## updateUser
<a name="updateUser"></a>
# **updateUser**
> updateUser(username, body)
Updated user
@@ -305,6 +327,7 @@ Updated user
This can only be done by the logged in user.
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
@@ -322,6 +345,7 @@ apiInstance.updateUser(username, body, (error, data, response) => {
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
@@ -337,6 +361,6 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: Not defined
- **Accept**: Not defined